[llvm] r303243 - Fixup r303240: Use llvm::to_string instead of std::to_string

Diana Picus via llvm-commits llvm-commits at lists.llvm.org
Wed May 17 02:25:09 PDT 2017


Author: rovka
Date: Wed May 17 04:25:08 2017
New Revision: 303243

URL: http://llvm.org/viewvc/llvm-project?rev=303243&view=rev
Log:
Fixup r303240: Use llvm::to_string instead of std::to_string

It turns out some of the buildbots don't have std::to_string around,
even in this day and age...

Modified:
    llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp

Modified: llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp?rev=303243&r1=303242&r2=303243&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp Wed May 17 04:25:08 2017
@@ -1538,10 +1538,10 @@ Expected<BuildMIAction &> GlobalISelEmit
   }
 
   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;




More information about the llvm-commits mailing list