revert r338831 - Fix unused variable warning in tablegen generated code

No longer necessary thanks to r338889 (and friends).

llvm-svn: 338893
This commit is contained in:
Erich Keane 2018-08-03 14:24:34 +00:00
parent f326b6b975
commit 873de98661
1 changed files with 4 additions and 8 deletions

View File

@ -3274,15 +3274,11 @@ static std::string GenerateCustomAppertainsTo(const Record &Subject,
return "";
}
const StringRef CheckCodeValue = Subject.getValueAsString("CheckCode");
OS << "static bool " << FnName << "(const Decl *D) {\n";
if (CheckCodeValue != "false") {
OS << " if (const auto *S = dyn_cast<";
OS << GetSubjectWithSuffix(Base);
OS << ">(D))\n";
OS << " return " << Subject.getValueAsString("CheckCode") << ";\n";
}
OS << " return false;\n";
OS << "}\n\n";