diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-08-08 04:39:56 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-08-08 04:39:56 +0000 |
commit | ecffd83c85ea9d2ef7cb041712988a350daf82cf (patch) | |
tree | 32a4a83a35c0268f6b38bd81841f6c336ce3cdb8 /clang/lib/Sema/SemaDecl.cpp | |
parent | f6d2184c833a798275fc6993695df320ad12405d (diff) | |
download | bcm5719-llvm-ecffd83c85ea9d2ef7cb041712988a350daf82cf.tar.gz bcm5719-llvm-ecffd83c85ea9d2ef7cb041712988a350daf82cf.zip |
Get rid of an early return in Sema::ActOnFields which doesn't make sense anymore.
Fixes a crash (<rdar://problem/11067144>), and generally seems to improve
recovery in other cases.
llvm-svn: 161474
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index ffe45fad039..869fedb00c2 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -9751,11 +9751,6 @@ void Sema::ActOnFields(Scope* S, AttributeList *Attr) { assert(EnclosingDecl && "missing record or interface decl"); - // If the decl this is being inserted into is invalid, then it may be a - // redeclaration or some other bogus case. Don't try to add fields to it. - if (EnclosingDecl->isInvalidDecl()) - return; - // If this is an Objective-C @implementation or category and we have // new fields here we should reset the layout of the interface since // it will now change. |