Skip to content

Commit 1c5e619

Browse files
[Clang] Flush minimization hints after writing (#151522)
This helps to get well-formed output if Clang crashes after that point.
1 parent 1023f6c commit 1c5e619

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Frontend/FrontendAction.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ class DeserializedDeclsSourceRangePrinter : public ASTConsumer,
226226
}
227227
*OS << " ]\n";
228228
*OS << "}\n";
229+
230+
OS->flush();
229231
}
230232
};
231233

0 commit comments

Comments
 (0)