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();
   }
 };
 


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to