diff options
author | Ian Romanick <[email protected]> | 2014-03-12 14:24:03 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-03-25 12:09:36 -0700 |
commit | c11c7e4f0131356c13c4433cd5c8bec3e883ac91 (patch) | |
tree | c69476258b65de46f887b6dd7954b70ea2dfe9ad /src/glsl/ir_clone.cpp | |
parent | 3bd65dc8a1fec7bba643ffe1fdec8dc2b87ca585 (diff) |
glsl: Group all of the constant_referenced functions together
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/glsl/ir_clone.cpp')
-rw-r--r-- | src/glsl/ir_clone.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp index 311c992bee0..167b80c9fef 100644 --- a/src/glsl/ir_clone.cpp +++ b/src/glsl/ir_clone.cpp @@ -265,10 +265,12 @@ ir_assignment::clone(void *mem_ctx, struct hash_table *ht) const if (this->condition) new_condition = this->condition->clone(mem_ctx, ht); - return new(mem_ctx) ir_assignment(this->lhs->clone(mem_ctx, ht), - this->rhs->clone(mem_ctx, ht), - new_condition, - this->write_mask); + ir_assignment *cloned = + new(mem_ctx) ir_assignment(this->lhs->clone(mem_ctx, ht), + this->rhs->clone(mem_ctx, ht), + new_condition); + cloned->write_mask = this->write_mask; + return cloned; } ir_function * |