No longer necessary thanks to r338889 (and friends).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338893
91177308-0d34-0410-b5e6-
96231b3b80d8
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 << " 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";