Fix order-of-evaluation bug (causing GCC buildbots to fail).
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 6 Apr 2016 20:57:53 +0000 (20:57 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 6 Apr 2016 20:57:53 +0000 (20:57 +0000)
llvm-svn: 265598

clang/lib/Serialization/ASTWriterStmt.cpp

index b5bb421..39d6361 100644 (file)
@@ -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