diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-07-13 17:21:42 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-07-13 17:21:42 +0000 | 
| commit | 4ba675006b5a8edfc48b6a9bd3dcf54a70cc08f2 (patch) | |
| tree | 48b44512b5db8ced345df4a1a56b5065cf2a14d9 /lib/Checker/SValuator.cpp | |
| parent | d7279c4c177bca357ef96ff1379fd9bc420bfe83 (diff) | |
Notes
Diffstat (limited to 'lib/Checker/SValuator.cpp')
| -rw-r--r-- | lib/Checker/SValuator.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Checker/SValuator.cpp b/lib/Checker/SValuator.cpp index 542fc1b1078d..a7e15fc3fd73 100644 --- a/lib/Checker/SValuator.cpp +++ b/lib/Checker/SValuator.cpp @@ -29,15 +29,15 @@ SVal SValuator::EvalBinOp(const GRState *ST, BinaryOperator::Opcode Op,    if (isa<Loc>(L)) {      if (isa<Loc>(R)) -      return EvalBinOpLL(Op, cast<Loc>(L), cast<Loc>(R), T); +      return EvalBinOpLL(ST, Op, cast<Loc>(L), cast<Loc>(R), T);      return EvalBinOpLN(ST, Op, cast<Loc>(L), cast<NonLoc>(R), T);    }    if (isa<Loc>(R)) { -    // Support pointer arithmetic where the increment/decrement operand -    // is on the left and the pointer on the right. -    assert(Op == BinaryOperator::Add || Op == BinaryOperator::Sub); +    // Support pointer arithmetic where the addend is on the left +    // and the pointer on the right. +    assert(Op == BinaryOperator::Add);      // Commute the operands.      return EvalBinOpLN(ST, Op, cast<Loc>(R), cast<NonLoc>(L), T);  | 
