Skip to content

Commit 76a6816

Browse files
authored
[flang][NFC] replace std::exit by fir::emitFatalError in Lower/Runtime.cpp (#169050)
1 parent bb2e468 commit 76a6816

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flang/lib/Lower/Runtime.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ void Fortran::lower::genStopStatement(
9090
operands.push_back(cast);
9191
},
9292
[&](auto) {
93-
mlir::emitError(loc, "unhandled expression in STOP");
94-
std::exit(1);
93+
fir::emitFatalError(loc, "unhandled expression in STOP");
9594
});
9695
} else {
9796
callee = fir::runtime::getRuntimeFunc<mkRTKey(StopStatement)>(loc, builder);

0 commit comments

Comments
 (0)