mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-11 05:17:36 +00:00
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
This commit is contained in:
parent
3918cade8f
commit
6fc3ea2f99
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user