summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-03-28 23:47:18 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-03-28 23:47:18 +0000
commitb24b5687254a1dc4756f968690f5e03359511f40 (patch)
tree0c58785647956d1a97a19ddfeb75bc927577ac71 /clang/lib/Sema/SemaExprObjC.cpp
parent96f962fdffab615f196ea6b66ea736ca2c601548 (diff)
downloadbcm5719-llvm-b24b5687254a1dc4756f968690f5e03359511f40.tar.gz
bcm5719-llvm-b24b5687254a1dc4756f968690f5e03359511f40.zip
Implements property of reference types. Adding
an executable test to llvm test suite. // rdar://9070460. llvm-svn: 128435
Diffstat (limited to 'clang/lib/Sema/SemaExprObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaExprObjC.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp
index cf38225de0c..19215c6cfd6 100644
--- a/clang/lib/Sema/SemaExprObjC.cpp
+++ b/clang/lib/Sema/SemaExprObjC.cpp
@@ -428,6 +428,7 @@ HandleExprPropertyRefExpr(const ObjCObjectPointerType *OPT,
if (DiagnoseUseOfDecl(PD, MemberLoc))
return ExprError();
QualType ResTy = PD->getType();
+ ResTy = ResTy.getNonLValueExprType(Context);
Selector Sel = PP.getSelectorTable().getNullarySelector(Member);
ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel);
if (DiagnosePropertyAccessorMismatch(PD, Getter, MemberLoc))
OpenPOWER on IntegriCloud