]> granicus.if.org Git - llvm/commitdiff
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...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303243 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/GlobalISelEmitter.cpp

index 3f77cac1772174018ed2b2b0b69901fcd5a576a3..2b624d95c66e8c70970470e05c93d1b67daae9a5 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;