From: Roman Divacky Date: Tue, 18 Sep 2012 18:27:49 +0000 (+0000) Subject: Fix the isLocalCall() by checking for linker weakness as well. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6fc3ea2f997f30827eaeb5e5c279119c79568333;p=oota-llvm.git Fix the isLocalCall() by checking for linker weakness as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164155 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 6b93d945f8d..3b22ac4acce 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -2812,7 +2812,8 @@ static bool isLocalCall(const SDValue &Callee) { if (GlobalAddressSDNode *G = dyn_cast(Callee)) - return !G->getGlobal()->isDeclaration(); + return !G->getGlobal()->isDeclaration() && + !G->getGlobal()->isWeakForLinker(); return false; }