summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-02-26 21:29:47 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-02-26 21:29:47 +0000
commit2bb7db9d0129cd9120df2214451cffc394980f85 (patch)
treef568c7bdef93454d3af53e5e9615122f5963255e /llvm/lib/TableGen
parent8ea7af8e44fc12143124cb57052eb3b66f691ff7 (diff)
downloadbcm5719-llvm-2bb7db9d0129cd9120df2214451cffc394980f85.tar.gz
bcm5719-llvm-2bb7db9d0129cd9120df2214451cffc394980f85.zip
[TableGen] Fix ICE on MSVC 2012 Release builds.
llvm-svn: 176125
Diffstat (limited to 'llvm/lib/TableGen')
-rw-r--r--llvm/lib/TableGen/TGParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp
index da0086a74ac..c4b48fe5e89 100644
--- a/llvm/lib/TableGen/TGParser.cpp
+++ b/llvm/lib/TableGen/TGParser.cpp
@@ -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,
OpenPOWER on IntegriCloud