r265598 - Fix order-of-evaluation bug (causing GCC buildbots to fail).
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 6 13:57:53 PDT 2016
Author: rsmith
Date: Wed Apr 6 15:57:53 2016
New Revision: 265598
URL: http://llvm.org/viewvc/llvm-project?rev=265598&view=rev
Log:
Fix order-of-evaluation bug (causing GCC buildbots to fail).
Modified:
cfe/trunk/lib/Serialization/ASTWriterStmt.cpp
Modified: cfe/trunk/lib/Serialization/ASTWriterStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriterStmt.cpp?rev=265598&r1=265597&r2=265598&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriterStmt.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriterStmt.cpp Wed Apr 6 15:57:53 2016
@@ -2417,7 +2417,8 @@ void ASTWriter::WriteSubStmt(Stmt *S) {
Writer.Visit(S);
- SubStmtEntries[S] = Writer.Emit();
+ uint64_t Offset = Writer.Emit();
+ SubStmtEntries[S] = Offset;
}
/// \brief Flush all of the statements that have been added to the
More information about the cfe-commits
mailing list