MSVC 2013 does not ICE on this code in the same fashion that MSVC 2012 did; NFC.
[oota-llvm.git] / utils / TableGen / CodeGenRegisters.cpp
index 2302eb7e5cf2ba084d8cd53127c053cb20933a87..37f890531addb70d08c19c38aca4d2cde8329c49 100644 (file)
@@ -656,9 +656,7 @@ CodeGenRegisterClass::CodeGenRegisterClass(CodeGenRegBank &RegBank, Record *R)
   // Rename anonymous register classes.
   if (R->getName().size() > 9 && R->getName()[9] == '.') {
     static unsigned AnonCounter = 0;
-    R->setName("AnonRegClass_" + utostr(AnonCounter));
-    // MSVC2012 ICEs if AnonCounter++ is directly passed to utostr.
-    ++AnonCounter;
+    R->setName("AnonRegClass_" + utostr(AnonCounter++));
   }
 
   std::vector<Record*> TypeList = R->getValueAsListOfDefs("RegTypes");