mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-23 14:30:50 +00:00
Remove unnecessary store to temporary std::string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76782 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
67e59834fc
commit
dfd3b64783
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user