diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp index c0a03263657..2a7b535cfa4 100644 --- a/tools/llvm-ld/llvm-ld.cpp +++ b/tools/llvm-ld/llvm-ld.cpp @@ -313,10 +313,7 @@ static void EmitShellScript(char **argv) { std::cerr << "Could not find llvm-stub.exe executable!\n"; exit(1); } - if (sys::CopyFile(OutputFilename, llvmstub)) { - std::cerr << "Could not copy the llvm-stub.exe executable!\n"; - exit(1); - } + sys::CopyFile(OutputFilename, llvmstub); return; #endif