Skip to content

Commit 87d3665

Browse files
jeanPerieraugusto2112
authored andcommitted
[flang][NFC] replace std::exit by fir::emitFatalError in Lower/Runtime.cpp (llvm#169050)
1 parent 126fd94 commit 87d3665

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)