Fixup r303240: Use llvm::to_string instead of std::to_string
authorDiana Picus <diana.picus@linaro.org>
Wed, 17 May 2017 09:25:08 +0000 (09:25 +0000)
committerDiana Picus <diana.picus@linaro.org>
Wed, 17 May 2017 09:25:08 +0000 (09:25 +0000)
It turns out some of the buildbots don't have std::to_string around,
even in this day and age...

llvm-svn: 303243

llvm/utils/TableGen/GlobalISelEmitter.cpp

index 3f77cac..2b624d9 100644 (file)
@@ -1538,10 +1538,10 @@ Expected<BuildMIAction &> GlobalISelEmitter::createAndImportInstructionRenderer(
   }
 
   if (NumDefaultOps + Dst->getNumChildren() != DstINumUses)
-    return failedImport("Expected " + std::to_string(DstINumUses) +
+    return failedImport("Expected " + llvm::to_string(DstINumUses) +
                         " used operands but found " +
-                        std::to_string(Dst->getNumChildren()) +
-                        " explicit ones and " + std::to_string(NumDefaultOps) +
+                        llvm::to_string(Dst->getNumChildren()) +
+                        " explicit ones and " + llvm::to_string(NumDefaultOps) +
                         " default ones");
 
   return DstMIBuilder;