glsl: Refactor AST-to-HIR code handling variable initializers
[mesa.git] / src / glsl / ir_hierarchical_visitor.h
index afa780dc91211b19b34ad08fe0a897bba2b031a9..dc177f5eb0ddb1a2c19bf5eb15532567719b9d3d 100644 (file)
@@ -165,6 +165,13 @@ public:
     * Extra data parameter passed to the per-node callback function
     */
    void *data;
+
+   /**
+    * Currently in the LHS of an assignment?
+    *
+    * This is set and cleared by the \c ir_assignment::accept method.
+    */
+   bool in_assignee;
 };
 
 void visit_tree(ir_instruction *ir,