mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Don't call utostr in Twine/raw_ostream contexts.
Creating temporary std::strings there is unnecessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238412 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user