HomePhabricator

Mark invalid RecordDecls as completed.

Description

Mark invalid RecordDecls as completed.

Sema::ActOnTag creates TagDecls for records. However, if those record
declarations are invalid, and the parser is in C++ mode, it would
silently drop the TagDecl (and leave it as "beingDefined"). The problem
is that other code (e.g. the ASTWriter) will serialize all types, and
expects them to be complete. So, leaving them open would result in
failing asserts.

Fixes PR20320

Differential Revision: http://reviews.llvm.org/D21176

Details

Committed
erikjvOct 27 2016, 1:37 AM
Differential Revision
D21176: Mark invalid RecordDecls as completed.
Parents
rL285274: [AVR] Generate all of the TableGen files we need
Branches
Unknown
Tags
Unknown