[cfe-commits] r96012 - /cfe/trunk/lib/AST/Expr.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Feb 12 13:02:28 PST 2010
Author: fjahanian
Date: Fri Feb 12 15:02:28 2010
New Revision: 96012
URL: http://llvm.org/viewvc/llvm-project?rev=96012&view=rev
Log:
Don't error when setting a sub-structure variable via objc properties
in objective-c++ mode (do it for objective-c only).
Modified:
cfe/trunk/lib/AST/Expr.cpp
Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=96012&r1=96011&r2=96012&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Fri Feb 12 15:02:28 2010
@@ -1068,12 +1068,7 @@
if (isa<FieldDecl>(Member)) {
if (m->isArrow())
return LV_Valid;
- Expr *BaseExp = m->getBase();
- if (BaseExp->getStmtClass() == ObjCPropertyRefExprClass)
- return LV_SubObjCPropertySetting;
- return
- (BaseExp->getStmtClass() == ObjCImplicitSetterGetterRefExprClass) ?
- LV_SubObjCPropertyGetterSetting : BaseExp->isLvalue(Ctx);
+ return m->getBase()->isLvalue(Ctx);
}
// -- If it refers to a static member function [...], then
More information about the cfe-commits
mailing list