diff --git a/clang/lib/Frontend/PCHWriterStmt.cpp b/clang/lib/Frontend/PCHWriterStmt.cpp index ef109c34f154..68b2daed4d55 100644 --- a/clang/lib/Frontend/PCHWriterStmt.cpp +++ b/clang/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; }