From: Eric Anholt Date: Mon, 12 Jul 2010 22:41:31 +0000 (-0700) Subject: glsl2: Use a better talloc context for ir_expression_flattening. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d74c9ff046c9cf8ee33c202eb5eba3dfc7f8e06e;p=mesa.git glsl2: Use a better talloc context for ir_expression_flattening. The instruction can be hung off of any other in the tree, even if the other one will be deleted, since it'll get stolen to the shader's context later if it's still live. --- diff --git a/src/glsl/ir_expression_flattening.cpp b/src/glsl/ir_expression_flattening.cpp index 0f10b671936..629194c1a04 100644 --- a/src/glsl/ir_expression_flattening.cpp +++ b/src/glsl/ir_expression_flattening.cpp @@ -82,7 +82,7 @@ do_expression_flattening(exec_list *instructions, ir_rvalue * ir_expression_flattening_visitor::operand_to_temp(ir_rvalue *ir) { - void *ctx = talloc_parent(base_ir); + void *ctx = base_ir; ir_variable *var; ir_assignment *assign;