From d34c5a921fb97fb8bacfd5fc801c322c928e203c Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sat, 6 Dec 2014 10:52:32 +0000 Subject: [PATCH] I didn't intend to commit this change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223584 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/ConstantFold.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IR/ConstantFold.cpp b/lib/IR/ConstantFold.cpp index b28effee812..cdfb41f7dcc 100644 --- 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(GV1) && !isa(GV2)) - if (!GV1->hasExternalWeakLinkage() && !GV2->hasExternalWeakLinkage()) + if (!GV1->hasExternalWeakLinkage() || !GV2->hasExternalWeakLinkage()) return ICmpInst::ICMP_NE; return ICmpInst::BAD_ICMP_PREDICATE; } -- 2.34.1