mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-06 05:33:28 +00:00
Fix Name Access
Get the Record name as a string explicitly to avoid asserts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
91919cd816
commit
69a2394b2d
@ -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…
x
Reference in New Issue
Block a user