aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bugpoint/ExecutionDriver.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-12-22 22:33:33 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-12-22 22:33:33 +0000
commit06c375bd1d402ddcf2ee8e34005a74a0addbd7cc (patch)
tree1b7b26bc027e3e657f69a9f3e052dd49efad4e8a /tools/bugpoint/ExecutionDriver.cpp
parentcfaf80c471ac0e9bb646db582d70570340c6b413 (diff)
downloadexternal_llvm-06c375bd1d402ddcf2ee8e34005a74a0addbd7cc.zip
external_llvm-06c375bd1d402ddcf2ee8e34005a74a0addbd7cc.tar.gz
external_llvm-06c375bd1d402ddcf2ee8e34005a74a0addbd7cc.tar.bz2
Fix the build on PowerPC/Darwin - it thought we were declaring a new
function or something. Since FileRemover takes a const reference to sys::Path, we need to pass an actual sys::Path variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r--tools/bugpoint/ExecutionDriver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp
index 8044f50..43017a6 100644
--- a/tools/bugpoint/ExecutionDriver.cpp
+++ b/tools/bugpoint/ExecutionDriver.cpp
@@ -195,7 +195,8 @@ std::string BugDriver::executeProgram(std::string OutputFile,
}
// Remove the temporary bytecode file when we are done.
- FileRemover BytecodeFileRemover(sys::Path(BytecodeFile), CreatedBytecode);
+ sys::Path BytecodePath (BytecodeFile);
+ FileRemover BytecodeFileRemover(BytecodePath, CreatedBytecode);
if (OutputFile.empty()) OutputFile = "bugpoint-execution-output";