Fix Record Name Reference
Get the record name though the init to avoid an assert. llvm-svn: 149153
This commit is contained in:
parent
a6958c6c4e
commit
ebb006fc3d
|
@ -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…
Reference in New Issue