mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
Flush statements after writing each DECL_CXX_BASE_SPECIFIERS node
llvm-svn: 117770
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user