mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 13:40:30 +00:00
Bugpoint will be throwing exceptions soon, perpare for the worst.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11584 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c064e8930f
commit
74d4527e40
@ -18,7 +18,6 @@
|
||||
#include "Support/CommandLine.h"
|
||||
#include "Config/unistd.h"
|
||||
#include <sys/resource.h>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
static cl::list<std::string>
|
||||
@ -51,5 +50,11 @@ int main(int argc, char **argv) {
|
||||
perror("setrlimit: RLIMIT_CORE");
|
||||
}
|
||||
|
||||
return D.run();
|
||||
try {
|
||||
return D.run();
|
||||
} catch (...) {
|
||||
std::cerr << "Whoops, an exception leaked out of bugpoint. "
|
||||
<< "This is a bug in bugpoint!\n";
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user