[llvm] 407c11b - [TableGen] Eliminate dead code in ParseForeachDeclaration [NFC]
Paul C. Anagnostopoulos via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 10 07:36:15 PDT 2021
Author: Paul C. Anagnostopoulos
Date: 2021-06-10T10:34:44-04:00
New Revision: 407c11b56337aab1b0c9880aa2f6ad1a348083c8
URL: https://github.com/llvm/llvm-project/commit/407c11b56337aab1b0c9880aa2f6ad1a348083c8
DIFF: https://github.com/llvm/llvm-project/commit/407c11b56337aab1b0c9880aa2f6ad1a348083c8.diff
LOG: [TableGen] Eliminate dead code in ParseForeachDeclaration [NFC]
Differential Revision: https://reviews.llvm.org/D103904
Added:
Modified:
llvm/lib/TableGen/TGParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp
index cae0306b23b72..ed7963031b242 100644
--- a/llvm/lib/TableGen/TGParser.cpp
+++ b/llvm/lib/TableGen/TGParser.cpp
@@ -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");
More information about the llvm-commits
mailing list