diff options
| author | jeanPerier <jperier@nvidia.com> | 2025-11-21 16:48:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-21 16:48:03 +0100 |
| commit | 76a68164bb29171664c91f3583b047e2913f5e73 (patch) | |
| tree | 088faedfacf4ee11645fd3c60cfc144577da7348 | |
| parent | bb2e4686c1c8e4955ff5d18a7baaef3fe14ba36e (diff) | |
[flang][NFC] replace std::exit by fir::emitFatalError in Lower/Runtime.cpp (#169050)
| -rw-r--r-- | flang/lib/Lower/Runtime.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/flang/lib/Lower/Runtime.cpp b/flang/lib/Lower/Runtime.cpp index d5b8045d9199..9ff6157f7487 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); |
