mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 00:16:25 +00:00
[TableGen] Fix ICE on MSVC 2012 Release builds.
llvm-svn: 176125
This commit is contained in:
parent
5440b8eaca
commit
1f361eb77c
@ -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,
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user