From fcb6ec0c7e37c2d15ddb04878f05cbd69d1da036 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 5 Nov 2003 21:45:35 +0000 Subject: I hate it when bugpoint is all ready to give me a bytecode file, then crashes in final cleanups. Then you had to run the whole mess again with -disable-final-cleanups. This makes bugpoint run the cleanups in a protected environment so that if they crash, bugpoint itself doesn't crash. This makes things much happier, implements a FIXME, and gets rid of YABPO (yet another bugpoint option). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9743 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/CrashDebugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/bugpoint/CrashDebugger.cpp') diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp index 27e99b994b..0b2851f220 100644 --- a/tools/bugpoint/CrashDebugger.cpp +++ b/tools/bugpoint/CrashDebugger.cpp @@ -379,7 +379,7 @@ bool BugDriver::debugCrash() { // Try to clean up the testcase by running funcresolve and globaldce... std::cout << "\n*** Attempting to perform final cleanups: "; Module *M = CloneModule(Program); - performFinalCleanups(M, true); + M = performFinalCleanups(M, true); std::swap(Program, M); // Find out if the pass still crashes on the cleaned up program... -- cgit v1.2.3-70-g09d2