summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-08-05 02:16:32 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-08-05 02:16:32 +0000
commit5d8cace94a71169ce8493baa7f3305a27fe0cd84 (patch)
tree95176448a258ea7abd5ffc0d1b70557455ab2924 /tools/bugpoint/BugDriver.cpp
parent02a8f76d58cbc44fbcd55f29d2eccbfac49df794 (diff)
downloadllvm-5d8cace94a71169ce8493baa7f3305a27fe0cd84.tar.gz
llvm-5d8cace94a71169ce8493baa7f3305a27fe0cd84.tar.bz2
llvm-5d8cace94a71169ce8493baa7f3305a27fe0cd84.tar.xz
Add a Module argument to the remaining runPasses methods and mark getContext
const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.cpp')
-rw-r--r--tools/bugpoint/BugDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp
index d5b0656019..cf7b183218 100644
--- a/tools/bugpoint/BugDriver.cpp
+++ b/tools/bugpoint/BugDriver.cpp
@@ -172,7 +172,7 @@ bool BugDriver::run(std::string &ErrMsg) {
// miscompilation.
if (!PassesToRun.empty()) {
outs() << "Running selected passes on program to test for crash: ";
- if (runPasses(PassesToRun))
+ if (runPasses(Program, PassesToRun))
return debugOptimizerCrash();
}