glsl2: Create new talloc contexts the "right" way.

This commit is contained in:
Kenneth Graunke
2010-06-25 13:36:14 -07:00
committed by Ian Romanick
parent 953ff1283d
commit c6099a65f8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ copy_propagation_basic_block(ir_instruction *first,
bool *out_progress = (bool *)data;
bool progress = false;
void *ctx = talloc(NULL, void*);
void *ctx = talloc_new(NULL);
for (ir = first;; ir = (ir_instruction *)ir->next) {
ir_assignment *ir_assign = ir->as_assignment();
+1 -1
View File
@@ -185,7 +185,7 @@ dead_code_local_basic_block(ir_instruction *first,
bool *out_progress = (bool *)data;
bool progress = false;
void *ctx = talloc(NULL, void*);
void *ctx = talloc_new(NULL);
/* Safe looping, since process_assignment */
for (ir = first, ir_next = (ir_instruction *)first->next;;
ir = ir_next, ir_next = (ir_instruction *)ir->next) {