summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/SVals.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-25 11:45:40 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-25 11:45:40 +0000
commite302792b6155bb195f88610a1ebde38343cf402e (patch)
treea3dc32bec0d52b683d794838266f40a1e43cffd7 /clang/lib/Checker/SVals.cpp
parent1bcddcaab3d1ad8c24e1771ac58a480aeac4230d (diff)
downloadbcm5719-llvm-e302792b6155bb195f88610a1ebde38343cf402e.tar.gz
bcm5719-llvm-e302792b6155bb195f88610a1ebde38343cf402e.zip
GCC didn't care for my attempt at API compatibility, so brute-force everything
to the new constants. llvm-svn: 112047
Diffstat (limited to 'clang/lib/Checker/SVals.cpp')
-rw-r--r--clang/lib/Checker/SVals.cpp4
1 files changed, 2 insertions, 2 deletions
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());
OpenPOWER on IntegriCloud