diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2012-09-18 18:27:49 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2012-09-18 18:27:49 +0000 |
commit | 6fc3ea2f997f30827eaeb5e5c279119c79568333 (patch) | |
tree | 4abe08ec62c78540e7d084439d1b68de59db6cd3 | |
parent | 3918cade8f7c0a9ff4e3c5799a55846d8f6e3fd4 (diff) |
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
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 6b93d945f8..3b22ac4acc 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<GlobalAddressSDNode>(Callee)) - return !G->getGlobal()->isDeclaration(); + return !G->getGlobal()->isDeclaration() && + !G->getGlobal()->isWeakForLinker(); return false; } |