summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaObjCProperty.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-10-12 00:00:57 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-10-12 00:00:57 +0000
commitfa643c8f3b19b9940387089a527ddb2d568cd2fe (patch)
tree455e073e6d176ef1daaa2c318dd71824dbec3282 /clang/lib/Sema/SemaObjCProperty.cpp
parentf192ca0761291cfe87a47c4897149eaae39fdf61 (diff)
downloadbcm5719-llvm-fa643c8f3b19b9940387089a527ddb2d568cd2fe.tar.gz
bcm5719-llvm-fa643c8f3b19b9940387089a527ddb2d568cd2fe.zip
objc: note location of the previously declared
property in the diagnostic. llvm-svn: 141745
Diffstat (limited to 'clang/lib/Sema/SemaObjCProperty.cpp')
-rw-r--r--clang/lib/Sema/SemaObjCProperty.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp
index df95396ee49..063b4abfb2a 100644
--- a/clang/lib/Sema/SemaObjCProperty.cpp
+++ b/clang/lib/Sema/SemaObjCProperty.cpp
@@ -936,9 +936,11 @@ Sema::DiagnosePropertyMismatch(ObjCPropertyDecl *Property,
QualType ConvertedType;
if (!isObjCPointerConversion(RHSType, LHSType,
ConvertedType, IncompatibleObjC) ||
- IncompatibleObjC)
+ IncompatibleObjC) {
Diag(Property->getLocation(), diag::warn_property_types_are_incompatible)
<< Property->getType() << SuperProperty->getType() << inheritedName;
+ Diag(SuperProperty->getLocation(), diag::note_property_declare);
+ }
}
}
OpenPOWER on IntegriCloud