From 5a5ac124e1efaf208671f01c46edb15f29ed2a0b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 27 May 2015 18:44:32 +0000 Subject: Vendor import of llvm trunk r238337: https://llvm.org/svn/llvm-project/llvm/trunk@238337 --- lib/TableGen/Error.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/TableGen/Error.cpp') diff --git a/lib/TableGen/Error.cpp b/lib/TableGen/Error.cpp index 8d9ae20dd52e..fd0893566254 100644 --- a/lib/TableGen/Error.cpp +++ b/lib/TableGen/Error.cpp @@ -14,6 +14,7 @@ #include "llvm/TableGen/Error.h" #include "llvm/ADT/Twine.h" +#include "llvm/Support/Signals.h" #include "llvm/Support/raw_ostream.h" #include @@ -64,11 +65,15 @@ void PrintError(const Twine &Msg) { void PrintFatalError(const Twine &Msg) { PrintError(Msg); + // The following call runs the file cleanup handlers. + sys::RunInterruptHandlers(); std::exit(1); } void PrintFatalError(ArrayRef ErrorLoc, const Twine &Msg) { PrintError(ErrorLoc, Msg); + // The following call runs the file cleanup handlers. + sys::RunInterruptHandlers(); std::exit(1); } -- cgit v1.2.3