glsl: Copy ir_variable::assigned and ir_variable::used fields in ::clone method
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 30 Aug 2013 22:27:49 +0000 (15:27 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 4 Sep 2013 15:10:01 +0000 (08:10 -0700)
Nothing currently relies on this, but one of the next patches will.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ir_clone.cpp

index 9d4178de8b12a8874735954b253f75cf81d9b0ce..a75b3b7622bf2e373765c7dd5252b96ec26a03c9 100644 (file)
@@ -59,6 +59,8 @@ ir_variable::clone(void *mem_ctx, struct hash_table *ht) const
    var->explicit_binding = this->explicit_binding;
    var->has_initializer = this->has_initializer;
    var->depth_layout = this->depth_layout;
+   var->assigned = this->assigned;
+   var->used = this->used;
 
    var->num_state_slots = this->num_state_slots;
    if (this->state_slots) {