diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp --- a/llvm/lib/TableGen/TGParser.cpp +++ b/llvm/lib/TableGen/TGParser.cpp @@ -3524,7 +3524,7 @@ Substs.emplace_back(QualifiedNameOfImplicitName(MC), DefmName); - if (resolve(MC->Entries, Substs, CurMultiClass == nullptr && Loops.empty(), + if (resolve(MC->Entries, Substs, !CurMultiClass && Loops.empty(), &NewEntries, &SubClassLoc)) return true;