mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 20:20:03 +00:00
Take the old function's name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48588 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6eabd74d1a
commit
2b3407f5b3
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user