summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/unusedenumconstants.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/unusedenumconstants.cxx')
-rw-r--r--compilerplugins/clang/unusedenumconstants.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedenumconstants.cxx b/compilerplugins/clang/unusedenumconstants.cxx
index d617f3f0d3a8..fb5a109c5b37 100644
--- a/compilerplugins/clang/unusedenumconstants.cxx
+++ b/compilerplugins/clang/unusedenumconstants.cxx
@@ -179,7 +179,7 @@ walk_up:
// Ignore a common pattern that does not introduce any new information, merely removes
// information: foo &= ~Enum6::Top
bool found = false;
- if (auto innerOperatorCall = dyn_cast<CXXOperatorCallExpr>(operatorCall->getArg(1)))
+ if (auto innerOperatorCall = dyn_cast<CXXOperatorCallExpr>(operatorCall->getArg(1)->IgnoreImplicit()->IgnoreParens()->IgnoreImplicit()))
{
found = innerOperatorCall->getOperator() == OO_Tilde;
}