[flang-commits] [flang] [flang][NFC] replace std::exit by fir::emitFatalError in Lower/Runtime.cpp (PR #169050)
via flang-commits
flang-commits at lists.llvm.org
Fri Nov 21 07:10:09 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-fir-hlfir
Author: None (jeanPerier)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/169050.diff
1 Files Affected:
- (modified) flang/lib/Lower/Runtime.cpp (+1-2)
``````````diff
diff --git a/flang/lib/Lower/Runtime.cpp b/flang/lib/Lower/Runtime.cpp
index d5b8045d91992..9ff6157f7487d 100644
--- a/flang/lib/Lower/Runtime.cpp
+++ b/flang/lib/Lower/Runtime.cpp
@@ -90,8 +90,7 @@ void Fortran::lower::genStopStatement(
operands.push_back(cast);
},
[&](auto) {
- mlir::emitError(loc, "unhandled expression in STOP");
- std::exit(1);
+ fir::emitFatalError(loc, "unhandled expression in STOP");
});
} else {
callee = fir::runtime::getRuntimeFunc<mkRTKey(StopStatement)>(loc, builder);
``````````
</details>
https://github.com/llvm/llvm-project/pull/169050
More information about the flang-commits
mailing list