diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-03-09 20:10:30 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-03-09 20:10:30 +0000 |
commit | 216f78b7333dbc89f58fa69066396ae3237da6da (patch) | |
tree | c5582df83664ec9d2d9c37f028dc8121124229ad /lib/StaticAnalyzer/Core/ExprEngine.cpp | |
parent | f9ff5876289d5228c299b57416a62c8c3b848287 (diff) |
Improve our semantic error recovery.
When an error made a record member invalid, the record would stay as "isBeingDefined" and
not "completeDefinition". Even easily recoverable errors ended up propagating records in
such "beingDefined" state, for example:
struct A {
~A() const; // expected-error {{'const' qualifier is not allowed on a destructor}}
};
struct B : A {}; // A & B would stay as "not complete definition" and "being defined".
This weird state was impending lookups in the records and hitting assertion in the ASTWriter.
Part of rdar://11007039
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ExprEngine.cpp')
0 files changed, 0 insertions, 0 deletions