aboutsummaryrefslogtreecommitdiff
path: root/tools/bugpoint/CrashDebugger.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-05 21:15:19 +0000
committerChris Lattner <sabre@nondot.org>2003-11-05 21:15:19 +0000
commit417477d6c2163e428be4e8ae9754518d877219df (patch)
tree211dd7dc5bd62b26d6ed36f1c409ab6334e0b17f /tools/bugpoint/CrashDebugger.cpp
parente7a6663eb155eb8eb5de24cf22f632790485e5f9 (diff)
Simplify the performFinalCleanups interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/CrashDebugger.cpp')
-rw-r--r--tools/bugpoint/CrashDebugger.cpp3
1 files changed, 2 insertions, 1 deletions
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...