diff options
author | Steve Naroff <snaroff@apple.com> | 2007-11-12 14:34:27 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-11-12 14:34:27 +0000 |
commit | 027282d1c1ac151aa7b1b3b45babc918b8ad456a (patch) | |
tree | cfbdedf01d891ea452a764bcb7c2cf0d2ec8e241 | |
parent | 7779db42c94405ecbd6ee45efb293483fa6cbeff (diff) |
Now that we can refer to instance variables, make sure they are considered lvalues.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44017 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | AST/Expr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/AST/Expr.cpp b/AST/Expr.cpp index 1ef93f5054..4505feca77 100644 --- a/AST/Expr.cpp +++ b/AST/Expr.cpp @@ -322,6 +322,8 @@ Expr::isLvalueResult Expr::isLvalue() const { if (cast<OCUVectorElementExpr>(this)->containsDuplicateElements()) return LV_DuplicateVectorComponents; return LV_Valid; + case ObjCIvarRefExprClass: // ObjC instance variables are lvalues. + return LV_Valid; default: break; } |