projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6eabd74
)
Take the old function's name.
author
Zhou Sheng
<zhousheng00@gmail.com>
Thu, 20 Mar 2008 08:05:05 +0000
(08:05 +0000)
committer
Zhou Sheng
<zhousheng00@gmail.com>
Thu, 20 Mar 2008 08:05:05 +0000
(08:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48588
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/ArgumentPromotion.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/ArgumentPromotion.cpp
b/lib/Transforms/IPO/ArgumentPromotion.cpp
index d7f122b564c33cbfcb6d79d532a245cf1a32ab33..230bafd6f0fcc84443478f4f06b0cbf141b768d0 100644
(file)
--- 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.