diff options
author | Dan Gohman <gohman@apple.com> | 2010-03-27 16:36:08 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-03-27 16:36:08 +0000 |
commit | 99ac24d1e36bd223c081b98a6b5592412f155b17 (patch) | |
tree | 2ca721f93b0aa01d24cc276544e144602a99d2de /llvm/tools/llvm-ld/llvm-ld.cpp | |
parent | eff5583908cbc3ef594db1860df3e87fee4e7727 (diff) | |
download | bcm5719-llvm-99ac24d1e36bd223c081b98a6b5592412f155b17.tar.gz bcm5719-llvm-99ac24d1e36bd223c081b98a6b5592412f155b17.zip |
No need to check the same condition twice.
llvm-svn: 99716
Diffstat (limited to 'llvm/tools/llvm-ld/llvm-ld.cpp')
-rw-r--r-- | llvm/tools/llvm-ld/llvm-ld.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp index 86c06c1e8f8..9956e23ddd8 100644 --- a/llvm/tools/llvm-ld/llvm-ld.cpp +++ b/llvm/tools/llvm-ld/llvm-ld.cpp @@ -611,7 +611,7 @@ int main(int argc, char **argv, char **envp) { 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)) |