mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-03 09:28:58 +00:00
Fix Name Access
Get the Record name as a string explicitly to avoid asserts. llvm-svn: 142516
This commit is contained in:
parent
b883bee7d6
commit
3cf03cfd6a
@ -1747,7 +1747,8 @@ bool TGParser::ParseClass() {
|
||||
if (!CurRec->getValues().empty() ||
|
||||
!CurRec->getSuperClasses().empty() ||
|
||||
!CurRec->getTemplateArgs().empty())
|
||||
return TokError("Class '" + CurRec->getName() + "' already defined");
|
||||
return TokError("Class '" + CurRec->getNameInitAsString()
|
||||
+ "' already defined");
|
||||
} else {
|
||||
// If this is the first reference to this class, create and add it.
|
||||
CurRec = new Record(Lex.getCurStrVal(), Lex.getLoc(), Records);
|
||||
|
Loading…
Reference in New Issue
Block a user