forked from OSchip/llvm-project
Make PCHWriter::FlushStmts() robust. If we added null Stmts, reading them back got messed up.
llvm-svn: 106859
This commit is contained in:
parent
f0f7a792d7
commit
03e5e0467c
|
@ -1185,6 +1185,7 @@ void PCHWriter::FlushStmts() {
|
|||
|
||||
if (!S) {
|
||||
Stream.EmitRecord(pch::STMT_NULL_PTR, Record);
|
||||
Stream.EmitRecord(pch::STMT_STOP, Record);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue