]> granicus.if.org Git - clang/commitdiff
Now that we can refer to instance variables, make sure they are considered lvalues.
authorSteve Naroff <snaroff@apple.com>
Mon, 12 Nov 2007 14:34:27 +0000 (14:34 +0000)
committerSteve Naroff <snaroff@apple.com>
Mon, 12 Nov 2007 14:34:27 +0000 (14:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44017 91177308-0d34-0410-b5e6-96231b3b80d8

AST/Expr.cpp

index 1ef93f5054e1812cd213c80f7090fcc15305a3d1..4505feca77e830d0018dce3aac7dd737606ca405 100644 (file)
@@ -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;
   }