projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
620e876
)
I didn't intend to commit this change.
author
David Majnemer
<david.majnemer@gmail.com>
Sat, 6 Dec 2014 10:52:32 +0000
(10:52 +0000)
committer
David Majnemer
<david.majnemer@gmail.com>
Sat, 6 Dec 2014 10:52:32 +0000
(10:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223584
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/ConstantFold.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/ConstantFold.cpp
b/lib/IR/ConstantFold.cpp
index b28effee812aeabc645816ae936d02bfa9d7cc05..cdfb41f7dcce4b81de3161d01a3f9d2bfae1abd4 100644
(file)
--- a/
lib/IR/ConstantFold.cpp
+++ b/
lib/IR/ConstantFold.cpp
@@
-1350,7
+1350,7
@@
static ICmpInst::Predicate areGlobalsPotentiallyEqual(const GlobalValue *GV1,
const GlobalValue *GV2) {
// Don't try to decide equality of aliases.
if (!isa<GlobalAlias>(GV1) && !isa<GlobalAlias>(GV2))
- if (!GV1->hasExternalWeakLinkage()
&&
!GV2->hasExternalWeakLinkage())
+ if (!GV1->hasExternalWeakLinkage()
||
!GV2->hasExternalWeakLinkage())
return ICmpInst::ICMP_NE;
return ICmpInst::BAD_ICMP_PREDICATE;
}