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 | 06808f1b880f461c396450db4c6a9c6d6c6c2efc (patch) | |
tree | d39b3ffb816ca36ec960180a50544829c1261504 /lib/Sema/SemaDecl.cpp | |
parent | 859c65cdbe730fd0e940b71ab4ba4884d44a8298 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index ffe45fad03..869fedb00c 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/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. |