Flush statements after writing each DECL_CXX_BASE_SPECIFIERS node

llvm-svn: 117770
This commit is contained in:
Douglas Gregor 2010-10-30 04:28:16 +00:00
parent 44e5981c1b
commit d58530422f
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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.
//