summaryrefslogtreecommitdiffstats
path: root/lib/Checker/PointerSubChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Checker/PointerSubChecker.cpp')
-rw-r--r--lib/Checker/PointerSubChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Checker/PointerSubChecker.cpp b/lib/Checker/PointerSubChecker.cpp
index bc0fd24..d64b6ae 100644
--- a/lib/Checker/PointerSubChecker.cpp
+++ b/lib/Checker/PointerSubChecker.cpp
@@ -39,7 +39,7 @@ void PointerSubChecker::PreVisitBinaryOperator(CheckerContext &C,
const BinaryOperator *B) {
// When doing pointer subtraction, if the two pointers do not point to the
// same memory chunk, emit a warning.
- if (B->getOpcode() != BinaryOperator::Sub)
+ if (B->getOpcode() != BO_Sub)
return;
const GRState *state = C.getState();
OpenPOWER on IntegriCloud