summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-10-30 17:46:34 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-10-30 17:46:34 +0000
commit8895316d0489e2353c0dce289b49f5cdd41085d7 (patch)
tree2b19117cb2489d83e396be75815b0e0147ac6450
parentdade3c144818e4888831ed13c1efaef28934ac78 (diff)
downloadllvm-8895316d0489e2353c0dce289b49f5cdd41085d7.tar.gz
llvm-8895316d0489e2353c0dce289b49f5cdd41085d7.tar.bz2
llvm-8895316d0489e2353c0dce289b49f5cdd41085d7.tar.xz
Teach ModuleLinker::getLinkageResult about materialisable functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143316 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Linker/LinkModules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp
index 03a962e3be..bcc6782129 100644
--- a/lib/Linker/LinkModules.cpp
+++ b/lib/Linker/LinkModules.cpp
@@ -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) {