From: Steve Naroff Date: Mon, 12 Nov 2007 14:34:27 +0000 (+0000) Subject: Now that we can refer to instance variables, make sure they are considered lvalues. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=027282d1c1ac151aa7b1b3b45babc918b8ad456a;p=clang 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 --- 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(this)->containsDuplicateElements()) return LV_DuplicateVectorComponents; return LV_Valid; + case ObjCIvarRefExprClass: // ObjC instance variables are lvalues. + return LV_Valid; default: break; }