summaryrefslogtreecommitdiffstats
path: root/lib/Checker/PointerArithChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Checker/PointerArithChecker.cpp')
-rw-r--r--lib/Checker/PointerArithChecker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Checker/PointerArithChecker.cpp b/lib/Checker/PointerArithChecker.cpp
index ed60c42..cbac423 100644
--- a/lib/Checker/PointerArithChecker.cpp
+++ b/lib/Checker/PointerArithChecker.cpp
@@ -36,8 +36,7 @@ void *PointerArithChecker::getTag() {
void PointerArithChecker::PreVisitBinaryOperator(CheckerContext &C,
const BinaryOperator *B) {
- if (B->getOpcode() != BinaryOperator::Sub &&
- B->getOpcode() != BinaryOperator::Add)
+ if (B->getOpcode() != BO_Sub && B->getOpcode() != BO_Add)
return;
const GRState *state = C.getState();
OpenPOWER on IntegriCloud