summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/charrightshift.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/charrightshift.cxx')
-rw-r--r--compilerplugins/clang/charrightshift.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/compilerplugins/clang/charrightshift.cxx b/compilerplugins/clang/charrightshift.cxx
index 6f3027002daa..4168826aeb13 100644
--- a/compilerplugins/clang/charrightshift.cxx
+++ b/compilerplugins/clang/charrightshift.cxx
@@ -24,7 +24,10 @@ public:
void run() override
{ TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); }
- bool VisitBinShr(BinaryOperator const * expr) {
+ bool VisitBinaryOperator(BinaryOperator const * expr) {
+ if (expr->getOpcode() != BO_Shr) {
+ return true;
+ }
if (ignoreLocation(expr)) {
return true;
}