From a30cdb94170a1944129fc9c3be22af19b5abfa97 Mon Sep 17 00:00:00 2001 From: Zhou Sheng Date: Thu, 20 Mar 2008 08:05:05 +0000 Subject: Take the old function's name. llvm-svn: 48588 --- llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp') 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. -- cgit v1.2.3