mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Teach ModuleLinker::getLinkageResult about materialisable functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143316 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dade3c1448
commit
8895316d04
@ -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…
x
Reference in New Issue
Block a user