diff options
Diffstat (limited to 'lib/mesa/src/compiler/glsl/ir_expression_flattening.cpp')
-rw-r--r-- | lib/mesa/src/compiler/glsl/ir_expression_flattening.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/mesa/src/compiler/glsl/ir_expression_flattening.cpp b/lib/mesa/src/compiler/glsl/ir_expression_flattening.cpp index c13ae811d..e4ca850d2 100644 --- a/lib/mesa/src/compiler/glsl/ir_expression_flattening.cpp +++ b/lib/mesa/src/compiler/glsl/ir_expression_flattening.cpp @@ -77,9 +77,7 @@ ir_expression_flattening_visitor::handle_rvalue(ir_rvalue **rvalue) var = new(ctx) ir_variable(ir->type, "flattening_tmp", ir_var_temporary); base_ir->insert_before(var); - assign = new(ctx) ir_assignment(new(ctx) ir_dereference_variable(var), - ir, - NULL); + assign = new(ctx) ir_assignment(new(ctx) ir_dereference_variable(var), ir); base_ir->insert_before(assign); *rvalue = new(ctx) ir_dereference_variable(var); |