]> granicus.if.org Git - clang/commitdiff
Make PCHWriter::FlushStmts() robust. If we added null Stmts, reading them back got...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 25 Jun 2010 16:25:02 +0000 (16:25 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 25 Jun 2010 16:25:02 +0000 (16:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106859 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/PCHWriterStmt.cpp

index ef109c34f1544f6dc310d3df3580417cc4fa5b4b..68b2daed4d55d532edb34a1d37f5140d8d809d04 100644 (file)
@@ -1185,6 +1185,7 @@ void PCHWriter::FlushStmts() {
 
     if (!S) {
       Stream.EmitRecord(pch::STMT_NULL_PTR, Record);
+      Stream.EmitRecord(pch::STMT_STOP, Record);
       continue;
     }