projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
60a6e1f
)
No need to check the same condition twice.
author
Dan Gohman
<gohman@apple.com>
Sat, 27 Mar 2010 16:36:08 +0000
(16:36 +0000)
committer
Dan Gohman
<gohman@apple.com>
Sat, 27 Mar 2010 16:36:08 +0000
(16:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99716
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-ld/llvm-ld.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-ld/llvm-ld.cpp
b/tools/llvm-ld/llvm-ld.cpp
index 86c06c1e8f8a584e104286867a7f0b14e0afc4f9..9956e23ddd8169cf2e3649d583a5b79a9c83ba4b 100644
(file)
--- a/
tools/llvm-ld/llvm-ld.cpp
+++ b/
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))