[cfe-commits] r117770 - in /cfe/trunk/lib/Serialization: ASTWriter.cpp ASTWriterDecl.cpp
Douglas Gregor
dgregor at apple.com
Fri Oct 29 21:28:16 PDT 2010
Author: dgregor
Date: Fri Oct 29 23:28:16 2010
New Revision: 117770
URL: http://llvm.org/viewvc/llvm-project?rev=117770&view=rev
Log:
Flush statements after writing each DECL_CXX_BASE_SPECIFIERS node
Modified:
cfe/trunk/lib/Serialization/ASTWriter.cpp
cfe/trunk/lib/Serialization/ASTWriterDecl.cpp
Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=117770&r1=117769&r2=117770&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Fri Oct 29 23:28:16 2010
@@ -3208,6 +3208,9 @@
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();
Modified: cfe/trunk/lib/Serialization/ASTWriterDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriterDecl.cpp?rev=117770&r1=117769&r2=117770&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriterDecl.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriterDecl.cpp Fri Oct 29 23:28:16 2010
@@ -1186,9 +1186,6 @@
// 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.
//
More information about the cfe-commits
mailing list