diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-02-26 21:29:47 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-02-26 21:29:47 +0000 |
commit | f15fe8195b0a42d0e950f3694c4d6ccd4034804a (patch) | |
tree | 9cb0aeb3e3a76ee824c90698f7a404da58ebffba /utils | |
parent | 65396823305326bcb379e88a95ded318e1da875c (diff) | |
download | external_llvm-f15fe8195b0a42d0e950f3694c4d6ccd4034804a.zip external_llvm-f15fe8195b0a42d0e950f3694c4d6ccd4034804a.tar.gz external_llvm-f15fe8195b0a42d0e950f3694c4d6ccd4034804a.tar.bz2 |
[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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/CodeGenRegisters.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenRegisters.cpp b/utils/TableGen/CodeGenRegisters.cpp index 4238340..993b8db 100644 --- a/utils/TableGen/CodeGenRegisters.cpp +++ b/utils/TableGen/CodeGenRegisters.cpp @@ -703,7 +703,9 @@ 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++)); + R->setName("AnonRegClass_" + utostr(AnonCounter)); + // MSVC2012 ICEs if AnonCounter++ is directly passed to utostr. + ++AnonCounter; } std::vector<Record*> TypeList = R->getValueAsListOfDefs("RegTypes"); |