Implement another property related FIXME:

Fix <rdar://problem/5967199> clang on xcode: error: member reference is not to a structure or union

llvm-svn: 51919
This commit is contained in:
Steve Naroff 2008-06-03 21:56:14 +00:00
parent 149614bfe7
commit 13c360cec4
1 changed files with 3 additions and 1 deletions

View File

@ -638,7 +638,9 @@ ActOnMemberReferenceExpr(ExprTy *Base, SourceLocation OpLoc,
// @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,