summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorZhou Sheng <zhousheng00@gmail.com>2008-03-20 08:05:05 +0000
committerZhou Sheng <zhousheng00@gmail.com>2008-03-20 08:05:05 +0000
commita30cdb94170a1944129fc9c3be22af19b5abfa97 (patch)
tree6d2649b9951bd99af437821ac534c09206563aa0 /llvm
parent183e524b2da3172a988f8557448010990013ff0a (diff)
downloadbcm5719-llvm-a30cdb94170a1944129fc9c3be22af19b5abfa97.tar.gz
bcm5719-llvm-a30cdb94170a1944129fc9c3be22af19b5abfa97.zip
Take the old function's name.
llvm-svn: 48588
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/IPO/ArgumentPromotion.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
index d7f122b564c..230bafd6f0f 100644
--- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -480,6 +480,7 @@ Function *ArgPromotion::DoPromotion(Function *F,
if (F->hasCollector())
NF->setCollector(F->getCollector());
F->getParent()->getFunctionList().insert(F, NF);
+ NF->takeName(F);
// Get the alias analysis information that we need to update to reflect our
// changes.
OpenPOWER on IntegriCloud