diff options
| author | Zhou Sheng <zhousheng00@gmail.com> | 2008-03-20 08:05:05 +0000 |
|---|---|---|
| committer | Zhou Sheng <zhousheng00@gmail.com> | 2008-03-20 08:05:05 +0000 |
| commit | 7f161cc0f58c8837d0508752aa5dd20857ac4bc5 (patch) | |
| tree | e18270d543e29165bc764c53222d1d6b7c56a179 /lib/Transforms | |
| parent | e05d2db53f673b7d2e5e9d7400a575e80f863e3c (diff) | |
| download | external_llvm-7f161cc0f58c8837d0508752aa5dd20857ac4bc5.zip external_llvm-7f161cc0f58c8837d0508752aa5dd20857ac4bc5.tar.gz external_llvm-7f161cc0f58c8837d0508752aa5dd20857ac4bc5.tar.bz2 | |
Take the old function's name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
| -rw-r--r-- | lib/Transforms/IPO/ArgumentPromotion.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp index d7f122b..230bafd 100644 --- a/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/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. |
