diff options
author | Ian Romanick <[email protected]> | 2017-09-18 15:30:51 -0500 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2017-10-02 14:46:02 -0700 |
commit | 6d1765c63aed1b814b29051c702f8e79ead6dbed (patch) | |
tree | cd8acdee3c4414b68c940bc6ab6e2f54369aa1b6 /src/compiler/glsl/ir_expression_flattening.cpp | |
parent | 3cc997c7c81759446f4478d70252015fbe0ed9f5 (diff) |
glsl: Don't pass NULL to ir_assignment constructor when not necessary
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_expression_flattening.cpp')
-rw-r--r-- | src/compiler/glsl/ir_expression_flattening.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler/glsl/ir_expression_flattening.cpp b/src/compiler/glsl/ir_expression_flattening.cpp index c13ae811d78..e4ca850d2f4 100644 --- a/src/compiler/glsl/ir_expression_flattening.cpp +++ b/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); |