sys::CopyFile returns void and throws an exception on error which will be

caught by llvm-ld's main function.

llvm-svn: 19030
This commit is contained in:
Reid Spencer
2004-12-18 06:54:21 +00:00
parent 8b086e3871
commit 5ababc6f33

View File

@@ -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