[clang] 1c5e619 - [Clang] Flush minimization hints after writing (#151522)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 1 04:47:26 PDT 2025
Author: Ilya Biryukov
Date: 2025-08-01T13:47:22+02:00
New Revision: 1c5e6199a166b70ca9cd2329b6fb3d1d470022dd
URL: https://github.com/llvm/llvm-project/commit/1c5e6199a166b70ca9cd2329b6fb3d1d470022dd
DIFF: https://github.com/llvm/llvm-project/commit/1c5e6199a166b70ca9cd2329b6fb3d1d470022dd.diff
LOG: [Clang] Flush minimization hints after writing (#151522)
This helps to get well-formed output if Clang crashes after that point.
Added:
Modified:
clang/lib/Frontend/FrontendAction.cpp
Removed:
################################################################################
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp
index 137d225d5b8ba..12b5c1837ded6 100644
--- a/clang/lib/Frontend/FrontendAction.cpp
+++ b/clang/lib/Frontend/FrontendAction.cpp
@@ -226,6 +226,8 @@ class DeserializedDeclsSourceRangePrinter : public ASTConsumer,
}
*OS << " ]\n";
*OS << "}\n";
+
+ OS->flush();
}
};
More information about the cfe-commits
mailing list