diff options
author | Eric Anholt <eric@anholt.net> | 2010-04-01 20:27:35 -1000 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-02 11:22:41 -0700 |
commit | c7da28b4beb3a593f49a6c01a90b123584b421e8 (patch) | |
tree | c689e2fb6916ac0c5ab4114ae4c40180a29d10a9 /ir.h | |
parent | 5150c567a0bf082d93f25ba7e29d5573c9dffb8b (diff) |
Allow array dereferences to be considered as lvalues.
Fixes glsl-vs-arrays.vert and glsl-vs-mov-after-deref.vert.
Regresses parser3.frag which was failing for the wrong reason.
Diffstat (limited to 'ir.h')
-rw-r--r-- | ir.h | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -540,17 +540,7 @@ public: v->visit(this); } - bool is_lvalue() - { - if (var == NULL) - return false; - - ir_variable *const as_var = var->as_variable(); - if (as_var == NULL) - return false; - - return !as_var->read_only; - } + bool is_lvalue(); enum { ir_reference_variable, |