aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-05-28 11:24:24 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-05-28 11:24:24 +0000
commitdba7ee90b51d91d6bc50cf31d431f62ba3799555 (patch)
tree9dec4a1b5935cfb9a60e3f64867ded14ff577a3e /llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
parent157e84f5a92956f38e4cd7a9f9f54434c13971bb (diff)
downloadllvm-dba7ee90b51d91d6bc50cf31d431f62ba3799555.zip
llvm-dba7ee90b51d91d6bc50cf31d431f62ba3799555.tar.gz
llvm-dba7ee90b51d91d6bc50cf31d431f62ba3799555.tar.bz2
Don't call utostr in Twine/raw_ostream contexts.
Creating temporary std::strings there is unnecessary. llvm-svn: 238412
Diffstat (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/ArgumentPromotion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
index 7b7672d..c70a9bc 100644
--- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -774,7 +774,7 @@ CallGraphNode *ArgPromotion::DoPromotion(Function *F,
for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) {
Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i);
Value *Idx = GetElementPtrInst::Create(
- STy, *AI, Idxs, (*AI)->getName() + "." + utostr(i), Call);
+ STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i), Call);
// TODO: Tell AA about the new values?
Args.push_back(new LoadInst(Idx, Idx->getName()+".val", Call));
}