commit | c4117aae93de65206fec2c82db82ee060b6fbe88 | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Fri Jun 25 16:25:02 2010 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Fri Jun 25 16:25:02 2010 +0000 |
tree | 0326e8e4adbb141c407768fe1d229e722800bfa7 | |
parent | 3acad62a239448bef0f5848b2a0d5f7dfefd3d14 [diff] [blame] |
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 ef109c3..68b2dae 100644 --- a/lib/Frontend/PCHWriterStmt.cpp +++ b/lib/Frontend/PCHWriterStmt.cpp
@@ -1185,6 +1185,7 @@ if (!S) { Stream.EmitRecord(pch::STMT_NULL_PTR, Record); + Stream.EmitRecord(pch::STMT_STOP, Record); continue; }