Fix warning about unused variable [NFC]

llvm-svn: 349891
This commit is contained in:
Bjorn Pettersson 2018-12-21 08:51:04 +00:00
parent 71645c2feb
commit f069f1c288
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ void SimplifyBooleanExprCheck::registerMatchers(MatchFinder *Finder) {
}
void SimplifyBooleanExprCheck::check(const MatchFinder::MatchResult &Result) {
if (const auto *TU = Result.Nodes.getNodeAs<TranslationUnitDecl>("top"))
if (Result.Nodes.getNodeAs<TranslationUnitDecl>("top"))
Visitor(this, Result).TraverseAST(*Result.Context);
else if (const CXXBoolLiteralExpr *TrueConditionRemoved =
getBoolLiteral(Result, ConditionThenStmtId))