Skip to content

Commit b922a24

Browse files
committed
[Clang] Flush minimization hints after writing
This helps to get well-formed output if Clang crashes after that point.
1 parent 311b291 commit b922a24

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)