[flang-commits] [flang] [flang] Ensure lowering diagnostic handler does not outlive lowering (PR #151608)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Thu Jul 31 19:07:17 PDT 2025


================
@@ -74,5 +74,10 @@ ENUM_LOWERINGOPT(SkipExternalRttiDefinition, unsigned, 1, 0)
 /// If false, lower to the complex dialect of MLIR.
 /// On by default.
 ENUM_LOWERINGOPT(ComplexDivisionToRuntime, unsigned, 1, 1)
+
+/// When true, it registers MLIRDiagnosticsHandler for the duration
+/// of the lowering pipeline.
+ENUM_LOWERINGOPT(RegisterMLIRDiagnosticsHandler, unsigned, 1, 1)
----------------
clementval wrote:

Ok that makes sense. Thanks for the explanation!

https://github.com/llvm/llvm-project/pull/151608


More information about the flang-commits mailing list