forked from OSchip/llvm-project
Flush statements after writing each DECL_CXX_BASE_SPECIFIERS node
llvm-svn: 117770
This commit is contained in:
parent
44e5981c1b
commit
d58530422f
|
@ -3208,6 +3208,9 @@ void ASTWriter::FlushCXXBaseSpecifiers() {
|
|||
for (; B != BEnd; ++B)
|
||||
AddCXXBaseSpecifier(*B, Record);
|
||||
Stream.EmitRecord(serialization::DECL_CXX_BASE_SPECIFIERS, Record);
|
||||
|
||||
// Flush any expressions that were written as part of the base specifiers.
|
||||
FlushStmts();
|
||||
}
|
||||
|
||||
CXXBaseSpecifiersToWrite.clear();
|
||||
|
|
|
@ -1186,9 +1186,6 @@ void ASTWriter::WriteDecl(ASTContext &Context, Decl *D) {
|
|||
// Flush C++ base specifiers, if there are any.
|
||||
FlushCXXBaseSpecifiers();
|
||||
|
||||
// Flush any expressions that were written as part of the base specifiers.
|
||||
FlushStmts();
|
||||
|
||||
// Note "external" declarations so that we can add them to a record in the
|
||||
// AST file later.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue