From: Argyrios Kyrtzidis Date: Fri, 25 Jun 2010 16:25:02 +0000 (+0000) Subject: Make PCHWriter::FlushStmts() robust. If we added null Stmts, reading them back got... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4117aae93de65206fec2c82db82ee060b6fbe88;p=clang Make PCHWriter::FlushStmts() robust. If we added null Stmts, reading them back got messed up. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106859 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/PCHWriterStmt.cpp b/lib/Frontend/PCHWriterStmt.cpp index ef109c34f1..68b2daed4d 100644 --- a/lib/Frontend/PCHWriterStmt.cpp +++ b/lib/Frontend/PCHWriterStmt.cpp @@ -1185,6 +1185,7 @@ void PCHWriter::FlushStmts() { if (!S) { Stream.EmitRecord(pch::STMT_NULL_PTR, Record); + Stream.EmitRecord(pch::STMT_STOP, Record); continue; }