summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-05-27 18:26:09 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-05-27 18:26:09 +0000
commit0c1c3113e80a30ac86a0d061e8e5fb860e5b0aff (patch)
treef78e97994344ad4c01ebe7131fae3550b5fe19d8 /clang/lib
parent76cbea6b6d6ebce41999696a705d2e9ae62a7498 (diff)
downloadbcm5719-llvm-0c1c3113e80a30ac86a0d061e8e5fb860e5b0aff.tar.gz
bcm5719-llvm-0c1c3113e80a30ac86a0d061e8e5fb860e5b0aff.zip
Objective-C. Fixes an obscuer crash caused by multiple inclusion of
same framework after complaining about duplicate class definition. // rdar://17024681 llvm-svn: 209672
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaObjCProperty.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp
index 23fa024593f..bc982997411 100644
--- a/clang/lib/Sema/SemaObjCProperty.cpp
+++ b/clang/lib/Sema/SemaObjCProperty.cpp
@@ -1907,6 +1907,9 @@ void Sema::ProcessPropertyDecl(ObjCPropertyDecl *property,
ObjCMethodDecl *GetterMethod, *SetterMethod;
+ if (CD->isInvalidDecl())
+ return;
+
GetterMethod = CD->getInstanceMethod(property->getGetterName());
SetterMethod = CD->getInstanceMethod(property->getSetterName());
DiagnosePropertyAccessorMismatch(property, GetterMethod,
OpenPOWER on IntegriCloud