Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 8895316

Browse files
committed
Teach ModuleLinker::getLinkageResult about materialisable functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143316 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent dade3c1 commit 8895316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Linker/LinkModules.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ bool ModuleLinker::getLinkageResult(GlobalValue *Dest, const GlobalValue *Src,
446446
assert(!Src->hasLocalLinkage() &&
447447
"If Src has internal linkage, Dest shouldn't be set!");
448448

449-
bool SrcIsDeclaration = Src->isDeclaration();
449+
bool SrcIsDeclaration = Src->isDeclaration() && !Src->isMaterializable();
450450
bool DestIsDeclaration = Dest->isDeclaration();
451451

452452
if (SrcIsDeclaration) {

0 commit comments

Comments
 (0)