aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExprObjC.cpp
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
commit2a96bf5e66731bb54dff3e4aadfbbced83377530 (patch)
treedeba489125fa73773d7727e4408cd5b731a36039 /lib/Sema/SemaExprObjC.cpp
parentebe5a9bcc51bff434f38d94748b08e9160609ed9 (diff)
Improve diagnostics on missing property decl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprObjC.cpp')
-rw-r--r--lib/Sema/SemaExprObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp
index c41327e284..4d03b068ca 100644
--- a/lib/Sema/SemaExprObjC.cpp
+++ b/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();
}