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/SVals.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Checker/SVals.cpp') diff --git a/clang/lib/Checker/SVals.cpp b/clang/lib/Checker/SVals.cpp index 3248b0fea25..97ba74e9487 100644 --- a/clang/lib/Checker/SVals.cpp +++ b/clang/lib/Checker/SVals.cpp @@ -250,8 +250,8 @@ SVal loc::ConcreteInt::EvalBinOp(BasicValueFactory& BasicVals, BinaryOperator::Opcode Op, const loc::ConcreteInt& R) const { - assert (Op == BinaryOperator::Add || Op == BinaryOperator::Sub || - (Op >= BinaryOperator::LT && Op <= BinaryOperator::NE)); + assert (Op == BO_Add || Op == BO_Sub || + (Op >= BO_LT && Op <= BO_NE)); const llvm::APSInt* X = BasicVals.EvaluateAPSInt(Op, getValue(), R.getValue()); -- cgit v1.2.3