diff options
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/loopvartoosmall.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/loopvartoosmall.cxx b/compilerplugins/clang/loopvartoosmall.cxx index eb4cb96d592d..f9c25eb4d8a9 100644 --- a/compilerplugins/clang/loopvartoosmall.cxx +++ b/compilerplugins/clang/loopvartoosmall.cxx @@ -80,7 +80,7 @@ unsigned LoopVarTooSmall::getIntValueWidth(QualType type) const { } void LoopVarTooSmall::checkSubExpr(Expr const * expr, bool positive) { - auto const e = expr->IgnoreParenImpCasts(); + auto const e = expr->IgnoreImplicit()->IgnoreParenImpCasts(); if (auto const uo = dyn_cast<UnaryOperator>(e)) { if (uo->getOpcode() == UO_LNot) { checkSubExpr(uo->getSubExpr(), !positive); |