Fix the build on PowerPC/Darwin - it thought we were declaring a new
authorBrian Gaeke <gaeke@uiuc.edu>
Wed, 22 Dec 2004 22:33:33 +0000 (22:33 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Wed, 22 Dec 2004 22:33:33 +0000 (22:33 +0000)
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

tools/bugpoint/ExecutionDriver.cpp

index 8044f504a43f5ded933c97690e6e59fca82ff697..43017a6199e829238c4316ce37048ccff1d2c664 100644 (file)
@@ -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";