summaryrefslogtreecommitdiffstats
path: root/clang/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
commitd58530422f48432b5dad282d660ff2545e7ad6c1 (patch)
tree5c5fe6af3c421b95b0a833b6ffe24f36a2f91b32 /clang/lib
parent44e5981c1b2d356bc9df976def1846023d5f8e20 (diff)
downloadbcm5719-llvm-d58530422f48432b5dad282d660ff2545e7ad6c1.tar.gz
bcm5719-llvm-d58530422f48432b5dad282d660ff2545e7ad6c1.zip
Flush statements after writing each DECL_CXX_BASE_SPECIFIERS node
llvm-svn: 117770
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp3
-rw-r--r--clang/lib/Serialization/ASTWriterDecl.cpp3
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 1fec22be4ed..47ef72f7bd6 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/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/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp
index 7d80f318566..de58cd03a43 100644
--- a/clang/lib/Serialization/ASTWriterDecl.cpp
+++ b/clang/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.
//
OpenPOWER on IntegriCloud