Make PCHWriter::FlushStmts() robust. If we added null Stmts, reading them back got messed up.

llvm-svn: 106859
This commit is contained in:
Argyrios Kyrtzidis 2010-06-25 16:25:02 +00:00
parent f0f7a792d7
commit 03e5e0467c
1 changed files with 1 additions and 0 deletions

View File

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