diff --git a/llvm/tools/gccld/gccld.cpp b/llvm/tools/gccld/gccld.cpp index 91f206b238f4..d33d64a01d68 100644 --- a/llvm/tools/gccld/gccld.cpp +++ b/llvm/tools/gccld/gccld.cpp @@ -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