mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 19:02:35 +00:00
MSVC 2013 does not ICE on this code in the same fashion that MSVC 2012 did; NFC.
llvm-svn: 229422
This commit is contained in:
parent
29a6fcc535
commit
7bf5e9ba92
@ -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,
|
||||
|
@ -656,9 +656,7 @@ 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));
|
||||
// MSVC2012 ICEs if AnonCounter++ is directly passed to utostr.
|
||||
++AnonCounter;
|
||||
R->setName("AnonRegClass_" + utostr(AnonCounter++));
|
||||
}
|
||||
|
||||
std::vector<Record*> TypeList = R->getValueAsListOfDefs("RegTypes");
|
||||
|
Loading…
x
Reference in New Issue
Block a user