MSVC 2013 does not ICE on this code in the same fashion that MSVC 2012 did; NFC.
[oota-llvm.git] / lib / TableGen / TGParser.cpp
index 2445e58e1b9cfd9c14959352a7dc87788dd0be01..44f6a6ea9f31588b0a9051ed98ee3372b6d85c95 100644 (file)
@@ -385,8 +385,7 @@ static bool isObjectStart(tgtok::TokKind K) {
 /// GetNewAnonymousName - Generate a unique anonymous name that can be used as
 /// an identifier.
 std::string TGParser::GetNewAnonymousName() {
-  unsigned Tmp = AnonCounter++; // MSVC2012 ICEs without this.
-  return "anonymous_" + utostr(Tmp);
+  return "anonymous_" + utostr(AnonCounter++);
 }
 
 /// ParseObjectName - If an object name is specified, return it.  Otherwise,