From c4117aae93de65206fec2c82db82ee060b6fbe88 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 25 Jun 2010 16:25:02 +0000 Subject: [PATCH] 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 --- lib/Frontend/PCHWriterStmt.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.50.1