Skip to content

Commit 1125fef

Browse files
committed
Call RunInterruptHandlers correctly everywhere.
1 parent ef2776b commit 1125fef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/TableGen/Error.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind,
4343
// Run file cleanup handlers and then exit fatally (with non-zero exit code).
4444
[[noreturn]] inline static void fatal_exit() {
4545
// The following call runs the file cleanup handlers.
46-
sys::RunInterruptHandlers(/*ExecuteSignalHandlers=*/false);
46+
sys::RunInterruptHandlers(/*ExecuteSignalHandlers=*/true);
4747
std::exit(1);
4848
}
4949

mlir/tools/mlir-tblgen/OpFormatGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3836,7 +3836,7 @@ void mlir::tblgen::generateOpFormat(const Operator &constOp, OpClass &opClass,
38363836
// Exit the process if format errors are treated as fatal.
38373837
if (formatErrorIsFatal) {
38383838
// Invoke the interrupt handlers to run the file cleanup handlers.
3839-
llvm::sys::RunInterruptHandlers();
3839+
llvm::sys::RunInterruptHandlers(/*ExecuteSignalHandlers=*/true);
38403840
std::exit(1);
38413841
}
38423842
return;

0 commit comments

Comments
 (0)