mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 21:00:29 +00:00
Teach ModuleLinker::getLinkageResult about materialisable functions
llvm-svn: 143316
This commit is contained in:
parent
c0001c42c6
commit
36e44c926d
@ -446,7 +446,7 @@ bool ModuleLinker::getLinkageResult(GlobalValue *Dest, const GlobalValue *Src,
|
||||
assert(!Src->hasLocalLinkage() &&
|
||||
"If Src has internal linkage, Dest shouldn't be set!");
|
||||
|
||||
bool SrcIsDeclaration = Src->isDeclaration();
|
||||
bool SrcIsDeclaration = Src->isDeclaration() && !Src->isMaterializable();
|
||||
bool DestIsDeclaration = Dest->isDeclaration();
|
||||
|
||||
if (SrcIsDeclaration) {
|
||||
|
Loading…
Reference in New Issue
Block a user