summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-02-17 17:30:05 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-02-17 17:30:05 +0000
commit5fc74804a61ac36f261349da8f4b0481da18298e (patch)
treea61bf30a7431a920c05b9aafeb049e5feee36f84 /clang/lib
parenta991f3a4e9151c4dc24f3d0902a7686d8febcd31 (diff)
downloadbcm5719-llvm-5fc74804a61ac36f261349da8f4b0481da18298e.tar.gz
bcm5719-llvm-5fc74804a61ac36f261349da8f4b0481da18298e.zip
Improve diagnostics on missing property decl.
llvm-svn: 125752
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaExprObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp
index c41327e2846..4d03b068ca8 100644
--- a/clang/lib/Sema/SemaExprObjC.cpp
+++ b/clang/lib/Sema/SemaExprObjC.cpp
@@ -530,7 +530,7 @@ HandleExprPropertyRefExpr(const ObjCObjectPointerType *OPT,
if (ObjCInterfaceDecl *IFace = IFaceT->getDecl())
if (IFace->isForwardDecl()) {
Diag(MemberLoc, diag::err_property_not_as_forward_class)
- << MemberName << QualType(OPT, 0);
+ << MemberName << IFace;
Diag(IFace->getLocation(), diag::note_forward_class);
return ExprError();
}
OpenPOWER on IntegriCloud