Skip to content

Commit 65d173b

Browse files
ilya-biryukovkrishna2803
authored andcommitted
[Clang] Flush minimization hints after writing (llvm#151522)
This helps to get well-formed output if Clang crashes after that point.
1 parent 79a387b commit 65d173b

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)