Don't call utostr in Twine/raw_ostream contexts.
[oota-llvm.git] / lib / Transforms / IPO / ArgumentPromotion.cpp
index 7b7672d0edfebd4dd23528f7959e8e7fca12438d..c70a9bcbf260c05a1be44c11bdfdb7c1839f7c68 100644 (file)
@@ -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));
         }