forked from OSchip/llvm-project
parent
183e524b2d
commit
a30cdb9417
|
@ -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