[llvm-commits] [llvm] r99716 - /llvm/trunk/tools/llvm-ld/llvm-ld.cpp

Dan Gohman gohman at apple.com
Sat Mar 27 09:36:08 PDT 2010


Author: djg
Date: Sat Mar 27 11:36:08 2010
New Revision: 99716

URL: http://llvm.org/viewvc/llvm-project?rev=99716&view=rev
Log:
No need to check the same condition twice.

Modified:
    llvm/trunk/tools/llvm-ld/llvm-ld.cpp

Modified: llvm/trunk/tools/llvm-ld/llvm-ld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ld/llvm-ld.cpp?rev=99716&r1=99715&r2=99716&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ld/llvm-ld.cpp (original)
+++ llvm/trunk/tools/llvm-ld/llvm-ld.cpp Sat Mar 27 11:36:08 2010
@@ -611,7 +611,7 @@
         args[2] = tmp_output.c_str();
         args[3] = 0;
         if (0 == sys::Program::ExecuteAndWait(prog, args, 0,0,0,0, &ErrMsg)) {
-          if (tmp_output.isBitcodeFile() || tmp_output.isBitcodeFile()) {
+          if (tmp_output.isBitcodeFile()) {
             sys::Path target(BitcodeOutputFilename);
             target.eraseFromDisk();
             if (tmp_output.renamePathOnDisk(target, &ErrMsg))





More information about the llvm-commits mailing list