mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-14 06:37:33 +00:00
Fix Record Name Reference
Get the record name though the init to avoid an assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149153 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3f8d3c7d72
commit
1d5013992f
@ -1775,7 +1775,7 @@ bool TGParser::ParseDef(MultiClass *CurMultiClass) {
|
||||
// Top-level def definition.
|
||||
|
||||
// Ensure redefinition doesn't happen.
|
||||
if (Records.getDef(CurRec->getName())) {
|
||||
if (Records.getDef(CurRec->getNameInitAsString())) {
|
||||
Error(DefLoc, "def '" + CurRec->getNameInitAsString()
|
||||
+ "' already defined");
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user