diff options
Diffstat (limited to 'compilerplugins/clang/charrightshift.cxx')
-rw-r--r-- | compilerplugins/clang/charrightshift.cxx | 5 |
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; } |