sys::CopyString throws an exception on error which will be caught by gccld
authorReid Spencer <rspencer@reidspencer.com>
Sat, 18 Dec 2004 06:53:10 +0000 (06:53 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 18 Dec 2004 06:53:10 +0000 (06:53 +0000)
main function.

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

tools/gccld/gccld.cpp

index 097085c10a9e8f5b0f7249ad5f09d5803002b1f2..91f206b238f402faf7664ee6f179498ae1a7b4e3 100644 (file)
@@ -124,10 +124,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