forked from OSchip/llvm-project
Check for error after InstantiateMultclassDef.
llvm-svn: 145689
This commit is contained in:
parent
3ed3bca38e
commit
bccc4c17f3
|
@ -2219,6 +2219,8 @@ bool TGParser::ParseDefm(MultiClass *CurMultiClass) {
|
|||
Record *DefProto = MC->DefPrototypes[i];
|
||||
|
||||
Record *CurRec = InstantiateMulticlassDef(*MC, DefProto, DefmPrefix, DefmPrefixLoc);
|
||||
if (!CurRec)
|
||||
return true;
|
||||
|
||||
if (ResolveMulticlassDefArgs(*MC, CurRec, DefmPrefixLoc, SubClassLoc,
|
||||
TArgs, TemplateVals, true/*Delete args*/))
|
||||
|
|
Loading…
Reference in New Issue