Use explicit construction of sys::Path from std::string because the
authorReid Spencer <rspencer@reidspencer.com>
Tue, 21 Dec 2004 03:24:02 +0000 (03:24 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 21 Dec 2004 03:24:02 +0000 (03:24 +0000)
constructor is "explicit".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19078 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gccld/gccld.cpp

index 91f206b238f402faf7664ee6f179498ae1a7b4e3..d33d64a01d68cb29901774412b4e410eb785e6f0 100644 (file)
@@ -124,7 +124,7 @@ static void EmitShellScript(char **argv) {
     std::cerr << "Could not find llvm-stub.exe executable!\n";
     exit(1);
   }
-  sys::CopyFile(OutputFilename, llvmstub);
+  sys::CopyFile(sys::Path(OutputFilename), sys::Path(llvmstub));
   return;
 #endif