[llvm] r223584 - I didn't intend to commit this change.
David Majnemer
david.majnemer at gmail.com
Sat Dec 6 02:52:32 PST 2014
Author: majnemer
Date: Sat Dec 6 04:52:32 2014
New Revision: 223584
URL: http://llvm.org/viewvc/llvm-project?rev=223584&view=rev
Log:
I didn't intend to commit this change.
Modified:
llvm/trunk/lib/IR/ConstantFold.cpp
Modified: llvm/trunk/lib/IR/ConstantFold.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/ConstantFold.cpp?rev=223584&r1=223583&r2=223584&view=diff
==============================================================================
--- llvm/trunk/lib/IR/ConstantFold.cpp (original)
+++ llvm/trunk/lib/IR/ConstantFold.cpp Sat Dec 6 04:52:32 2014
@@ -1350,7 +1350,7 @@ static ICmpInst::Predicate areGlobalsPot
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;
}
More information about the llvm-commits
mailing list