From: Richard Smith Date: Wed, 6 Apr 2016 20:57:53 +0000 (+0000) Subject: Fix order-of-evaluation bug (causing GCC buildbots to fail). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa2811ae365b33b7161097fe8938e436d1bb49b8;p=clang Fix order-of-evaluation bug (causing GCC buildbots to fail). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265598 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Serialization/ASTWriterStmt.cpp b/lib/Serialization/ASTWriterStmt.cpp index b5bb4211f9..39d6361303 100644 --- a/lib/Serialization/ASTWriterStmt.cpp +++ b/lib/Serialization/ASTWriterStmt.cpp @@ -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