From e302792b6155bb195f88610a1ebde38343cf402e Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 25 Aug 2010 11:45:40 +0000 Subject: GCC didn't care for my attempt at API compatibility, so brute-force everything to the new constants. llvm-svn: 112047 --- clang/lib/Checker/PointerArithChecker.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib/Checker/PointerArithChecker.cpp') diff --git a/clang/lib/Checker/PointerArithChecker.cpp b/clang/lib/Checker/PointerArithChecker.cpp index ed60c42613f..cbac423b467 100644 --- a/clang/lib/Checker/PointerArithChecker.cpp +++ b/clang/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(); -- cgit v1.2.3