mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-19 17:47:38 +00:00
Fix the isLocalCall() by checking for linker weakness as well.
llvm-svn: 164155
This commit is contained in:
parent
7b511c1a80
commit
748e9dfd91
@ -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…
Reference in New Issue
Block a user