From 417477d6c2163e428be4e8ae9754518d877219df Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 5 Nov 2003 21:15:19 +0000 Subject: Simplify the performFinalCleanups interface git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9740 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/CrashDebugger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/bugpoint/CrashDebugger.cpp') diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp index fe13e6726d..27e99b994b 100644 --- a/tools/bugpoint/CrashDebugger.cpp +++ b/tools/bugpoint/CrashDebugger.cpp @@ -378,7 +378,8 @@ bool BugDriver::debugCrash() { // Try to clean up the testcase by running funcresolve and globaldce... std::cout << "\n*** Attempting to perform final cleanups: "; - Module *M = performFinalCleanups(); + Module *M = CloneModule(Program); + 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