Take the old function's name.

llvm-svn: 48588
This commit is contained in:
Zhou Sheng 2008-03-20 08:05:05 +00:00
parent 183e524b2d
commit a30cdb9417
1 changed files with 1 additions and 0 deletions

View File

@ -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.