[cfe-commits] r44017 - /cfe/trunk/AST/Expr.cpp

Steve Naroff snaroff at apple.com
Mon Nov 12 06:34:27 PST 2007


Author: snaroff
Date: Mon Nov 12 08:34:27 2007
New Revision: 44017

URL: http://llvm.org/viewvc/llvm-project?rev=44017&view=rev
Log:

Now that we can refer to instance variables, make sure they are considered lvalues.


Modified:
    cfe/trunk/AST/Expr.cpp

Modified: cfe/trunk/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/Expr.cpp?rev=44017&r1=44016&r2=44017&view=diff

==============================================================================
--- cfe/trunk/AST/Expr.cpp (original)
+++ cfe/trunk/AST/Expr.cpp Mon Nov 12 08:34:27 2007
@@ -322,6 +322,8 @@
     if (cast<OCUVectorElementExpr>(this)->containsDuplicateElements())
       return LV_DuplicateVectorComponents;
     return LV_Valid;
+  case ObjCIvarRefExprClass: // ObjC instance variables are lvalues.
+    return LV_Valid;
   default:
     break;
   }





More information about the cfe-commits mailing list