mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix Name Access
Get the Record name as a string explicitly to avoid asserts. llvm-svn: 142517
This commit is contained in:
parent
3cf03cfd6a
commit
947cd6bbaf
@ -2021,8 +2021,9 @@ bool TGParser::ResolveMulticlassDef(MultiClass &MC,
|
||||
if (CurMultiClass) {
|
||||
for (unsigned i = 0, e = CurMultiClass->DefPrototypes.size();
|
||||
i != e; ++i)
|
||||
if (CurMultiClass->DefPrototypes[i]->getName() == CurRec->getName())
|
||||
return Error(DefmPrefixLoc, "defm '" + CurRec->getName() +
|
||||
if (CurMultiClass->DefPrototypes[i]->getNameInit()
|
||||
== CurRec->getNameInit())
|
||||
return Error(DefmPrefixLoc, "defm '" + CurRec->getNameInitAsString() +
|
||||
"' already defined in this multiclass!");
|
||||
CurMultiClass->DefPrototypes.push_back(CurRec);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user