[TableGen] Fix ICE on MSVC 2012 Release builds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176125 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael J. Spencer
2013-02-26 21:29:47 +00:00
parent 6539682330
commit f15fe8195b
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -382,7 +382,8 @@ static bool isObjectStart(tgtok::TokKind K) {
static std::string GetNewAnonymousName() {
static unsigned AnonCounter = 0;
return "anonymous."+utostr(AnonCounter++);
unsigned Tmp = AnonCounter++; // MSVC2012 ICEs without this.
return "anonymous." + utostr(Tmp);
}
/// ParseObjectName - If an object name is specified, return it. Otherwise,