[cfe-commits] r51919 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Steve Naroff
snaroff at apple.com
Tue Jun 3 14:56:14 PDT 2008
Author: snaroff
Date: Tue Jun 3 16:56:14 2008
New Revision: 51919
URL: http://llvm.org/viewvc/llvm-project?rev=51919&view=rev
Log:
Implement another property related FIXME:
Fix <rdar://problem/5967199> clang on xcode: error: member reference is not to a structure or union
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=51919&r1=51918&r2=51919&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Tue Jun 3 16:56:14 2008
@@ -638,7 +638,9 @@
// @end
// void someMethod() { frameworkBundle.bundlePath = 0; }
//
- // FIXME: lookup explicit properties...
+ ObjCPropertyDecl *PD = IFace->FindPropertyDeclaration(&Member);
+ if (PD)
+ return new ObjCPropertyRefExpr(PD, PD->getType(), MemberLoc, BaseExpr);
}
}
return Diag(OpLoc, diag::err_typecheck_member_reference_structUnion,
More information about the cfe-commits
mailing list