Check for error after InstantiateMultclassDef.

llvm-svn: 145689
This commit is contained in:
Jim Grosbach 2011-12-02 18:33:03 +00:00
parent 3ed3bca38e
commit bccc4c17f3
1 changed files with 2 additions and 0 deletions

View File

@ -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*/))