[TableGen] Eliminate dead code in ParseForeachDeclaration [NFC]

Differential Revision: https://reviews.llvm.org/D103904
This commit is contained in:
Paul C. Anagnostopoulos 2021-06-08 11:51:53 -04:00
parent de79919e9e
commit 407c11b563
1 changed files with 1 additions and 4 deletions

View File

@ -2787,10 +2787,7 @@ VarInit *TGParser::ParseForeachDeclaration(Init *&ForeachListValue) {
break;
}
std::string Type;
if (TI)
Type = (Twine("' of type '") + TI->getType()->getAsString()).str();
Error(ValueLoc, "expected a list, got '" + I->getAsString() + Type + "'");
Error(ValueLoc, "expected a list, got '" + I->getAsString() + "'");
if (CurMultiClass) {
PrintNote({}, "references to multiclass template arguments cannot be "
"resolved at this time");