diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2014-05-27 18:26:09 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-05-27 18:26:09 +0000 |
commit | 0c1c3113e80a30ac86a0d061e8e5fb860e5b0aff (patch) | |
tree | f78e97994344ad4c01ebe7131fae3550b5fe19d8 /clang/lib | |
parent | 76cbea6b6d6ebce41999696a705d2e9ae62a7498 (diff) | |
download | bcm5719-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.cpp | 3 |
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, |