aboutsummaryrefslogtreecommitdiff
path: root/lib/Linker/LinkModules.cpp
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
commitd24397a9319a41e80169f572ad274a711f41d64e (patch)
treedde0055e7cdd6b08fc9e2928696bc303619f68ed /lib/Linker/LinkModules.cpp
parentcf985924fb73e71ed61a55a7a8dba97a8e200b3d (diff)
When not destroying the source, the linker is not remapping the types. Added support
to CloneFunctionInto to allow remapping for this case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker/LinkModules.cpp')
-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 ba4221d053..75efce0b18 100644
--- a/lib/Linker/LinkModules.cpp
+++ b/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.