glsl2: Set ir_discard::ir_type when cloning it
authorAras Pranckevicius <aras@unity3d.com>
Wed, 4 Aug 2010 14:31:04 +0000 (16:31 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 4 Aug 2010 15:57:02 +0000 (08:57 -0700)
Fixes unset ir_type after inlining.

src/glsl/ir.h

index bee9f6a2de4b2ac3f4600b6a78482ac7c3140c3c..f88a243cc026d2cef90cd1027017163e70d3dcf6 100644 (file)
@@ -889,6 +889,7 @@ public:
 
    ir_discard(ir_rvalue *cond)
    {
+      this->ir_type = ir_type_discard;
       this->condition = cond;
    }