projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e2eda1
)
Remove unnecessary store to temporary std::string.
author
Daniel Dunbar
<daniel@zuster.org>
Wed, 22 Jul 2009 20:46:46 +0000
(20:46 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Wed, 22 Jul 2009 20:46:46 +0000
(20:46 +0000)
llvm-svn: 76782
llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
index 3a97aa83b53cd0974ba3c315e01c645ed211e9ee..472f4eaa115c89bb32770200d24611cf86a6c0c2 100644
(file)
--- a/
llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/
llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
@@
-762,9
+762,10
@@
Function *ArgPromotion::DoPromotion(Function *F,
for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) {
Idxs[1] = Context.getConstantInt(Type::Int32Ty, i);
- std::string Name = TheAlloca->getName()+"."+utostr(i);
- Value *Idx = GetElementPtrInst::Create(TheAlloca, Idxs, Idxs+2,
- Name, InsertPt);
+ Value *Idx =
+ GetElementPtrInst::Create(TheAlloca, Idxs, Idxs+2,
+ TheAlloca->getName()+"."+utostr(i),
+ InsertPt);
I2->setName(I->getName()+"."+utostr(i));
new StoreInst(I2++, Idx, InsertPt);
}