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/lower_instructions.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/lower_instructions.cpp')
-rw-r--r-- | src/compiler/glsl/lower_instructions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/lower_instructions.cpp b/src/compiler/glsl/lower_instructions.cpp index 362562a4af6..91f71b37619 100644 --- a/src/compiler/glsl/lower_instructions.cpp +++ b/src/compiler/glsl/lower_instructions.cpp @@ -319,10 +319,10 @@ lower_instructions_visitor::mod_to_floor(ir_expression *ir) ir_assignment *const assign_x = new(ir) ir_assignment(new(ir) ir_dereference_variable(x), - ir->operands[0], NULL); + ir->operands[0]); ir_assignment *const assign_y = new(ir) ir_assignment(new(ir) ir_dereference_variable(y), - ir->operands[1], NULL); + ir->operands[1]); this->base_ir->insert_before(assign_x); this->base_ir->insert_before(assign_y); |