forked from OSchip/llvm-project
[TableGen] Eliminate dead code in ParseForeachDeclaration [NFC]
Differential Revision: https://reviews.llvm.org/D103904
This commit is contained in:
parent
de79919e9e
commit
407c11b563
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue