aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-30 04:28:16 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-30 04:28:16 +0000
commitacec34bda4a765fd05ed10e5aa83bc93dac072c1 (patch)
treee1f0d9a08e5e0a09bd9d67cc80db79a6064147d4 /lib
parentd86132d52c1dd99ad5519abaad92533712692a8b (diff)
Flush statements after writing each DECL_CXX_BASE_SPECIFIERS node
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Serialization/ASTWriter.cpp3
-rw-r--r--lib/Serialization/ASTWriterDecl.cpp3
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp
index 1fec22be4e..47ef72f7bd 100644
--- a/lib/Serialization/ASTWriter.cpp
+++ b/lib/Serialization/ASTWriter.cpp
@@ -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();
diff --git a/lib/Serialization/ASTWriterDecl.cpp b/lib/Serialization/ASTWriterDecl.cpp
index 7d80f31856..de58cd03a4 100644
--- a/lib/Serialization/ASTWriterDecl.cpp
+++ b/lib/Serialization/ASTWriterDecl.cpp
@@ -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.
//