diff options
author | Ian Romanick <[email protected]> | 2017-09-07 19:02:48 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2017-09-19 12:02:43 -0500 |
commit | 0e88153e998b5ba97dee2b143915ba2509217281 (patch) | |
tree | 1d9ac0711ca41cc159faab043f627452cc41878c /src/compiler/glsl/ir_clone.cpp | |
parent | e5145e28eabbcd9775427114f9469809a74c8fb1 (diff) |
glsl: Rename ir_constant::array_elements to ::const_elements
The next patch will unify ::array_elements and ::components, so the
name ::array_elements wouldn't be appropriate. A lot of things use
the names array_elements and components, so grepping for either is
pretty useless.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Reviewed-by: Elie Tournier <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_clone.cpp')
-rw-r--r-- | src/compiler/glsl/ir_clone.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/ir_clone.cpp b/src/compiler/glsl/ir_clone.cpp index 4fb9fa31f9b..114367c8555 100644 --- a/src/compiler/glsl/ir_clone.cpp +++ b/src/compiler/glsl/ir_clone.cpp @@ -364,9 +364,9 @@ ir_constant::clone(void *mem_ctx, struct hash_table *ht) const ir_constant *c = new(mem_ctx) ir_constant; c->type = this->type; - c->array_elements = ralloc_array(c, ir_constant *, this->type->length); + c->const_elements = ralloc_array(c, ir_constant *, this->type->length); for (unsigned i = 0; i < this->type->length; i++) { - c->array_elements[i] = this->array_elements[i]->clone(mem_ctx, NULL); + c->const_elements[i] = this->const_elements[i]->clone(mem_ctx, NULL); } return c; } |