summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Linker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms/Utils/Linker.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Linker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/Linker.cpp b/llvm/lib/Transforms/Utils/Linker.cpp
index 3e8a35cde4e..3cb1ffecd26 100644
--- a/llvm/lib/Transforms/Utils/Linker.cpp
+++ b/llvm/lib/Transforms/Utils/Linker.cpp
@@ -260,6 +260,7 @@ static bool LinkMethodBody(Method *Dest, const Method *Src,
II != IE; ++II) {
const Instruction *SI = *II;
Instruction *DI = SI->clone();
+ DI->setName(SI->getName());
DBB->getInstList().push_back(DI);
LocalMap.insert(make_pair(SI, DI));
}
OpenPOWER on IntegriCloud