summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ld/llvm-ld.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-03-27 16:36:08 +0000
committerDan Gohman <gohman@apple.com>2010-03-27 16:36:08 +0000
commit99ac24d1e36bd223c081b98a6b5592412f155b17 (patch)
tree2ca721f93b0aa01d24cc276544e144602a99d2de /llvm/tools/llvm-ld/llvm-ld.cpp
parenteff5583908cbc3ef594db1860df3e87fee4e7727 (diff)
downloadbcm5719-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.cpp2
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))
OpenPOWER on IntegriCloud