summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2011-12-23 02:18:32 +0000
committerMon P Wang <wangmp@apple.com>2011-12-23 02:18:32 +0000
commit5d44a4332a7cc34dbbf91df28fe150e605fb89d7 (patch)
treefa99faa43c4cf383f9982553e50518d7fa2b4e59 /llvm/lib/Linker
parent2644063ec9db70619abec440e02be1c3c815ef4b (diff)
downloadbcm5719-llvm-5d44a4332a7cc34dbbf91df28fe150e605fb89d7.tar.gz
bcm5719-llvm-5d44a4332a7cc34dbbf91df28fe150e605fb89d7.zip
When not destroying the source, the linker is not remapping the types. Added support
to CloneFunctionInto to allow remapping for this case. llvm-svn: 147217
Diffstat (limited to 'llvm/lib/Linker')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index ba4221d0539..75efce0b182 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -890,7 +890,7 @@ void ModuleLinker::linkFunctionBody(Function *Dst, Function *Src) {
} else {
// Clone the body of the function into the dest function.
SmallVector<ReturnInst*, 8> Returns; // Ignore returns.
- CloneFunctionInto(Dst, Src, ValueMap, false, Returns);
+ CloneFunctionInto(Dst, Src, ValueMap, false, Returns, "", NULL, &TypeMap);
}
// There is no need to map the arguments anymore.
OpenPOWER on IntegriCloud