From c32573b2d42e90ba90be24739946d2567ee28074 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 14 Mar 2014 15:13:35 +0000 Subject: [PATCH] Fix a bug introduced during the transition to PathV2. sys::fs::createUniqueFile returns an absolute path, so MakeSharedObject does too and we don't need to add a './' prefix. Patch by Jon McLachlan. llvm-svn: 203931 --- llvm/tools/bugpoint/ExecutionDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/bugpoint/ExecutionDriver.cpp b/llvm/tools/bugpoint/ExecutionDriver.cpp index c05c8d702da0..609de03db82c 100644 --- a/llvm/tools/bugpoint/ExecutionDriver.cpp +++ b/llvm/tools/bugpoint/ExecutionDriver.cpp @@ -404,7 +404,7 @@ std::string BugDriver::compileSharedObject(const std::string &BitcodeFile, // Remove the intermediate C file sys::fs::remove(OutputFile); - return "./" + SharedObjectFile; + return SharedObjectFile; } /// createReferenceFile - calls compileProgram and then records the output