Twines: Don't allow implicit conversion from integers, this is too tricky.
[oota-llvm.git] / lib / Transforms / Utils / PromoteMemoryToRegister.cpp
index 7f8d2026e3423c70d1e1fb7b5574aec76f847de9..5645110db666657af8d8abb89ff2f7d06f8a8000 100644 (file)
@@ -867,7 +867,7 @@ bool PromoteMem2Reg::QueuePhiNode(BasicBlock *BB, unsigned AllocaNo,
   // Create a PhiNode using the dereferenced type... and add the phi-node to the
   // BasicBlock.
   PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(),
-                       Allocas[AllocaNo]->getName() + "." + Version++
+                       Allocas[AllocaNo]->getName() + "." + Twine(Version++)
                        BB->begin());
   ++NumPHIInsert;
   PhiToAllocaMap[PN] = AllocaNo;