[cfe-commits] r47449 - /cfe/trunk/Analysis/GRExprEngine.cpp

Ted Kremenek kremenek at apple.com
Thu Feb 21 11:29:24 PST 2008


Author: kremenek
Date: Thu Feb 21 13:29:23 2008
New Revision: 47449

URL: http://llvm.org/viewvc/llvm-project?rev=47449&view=rev
Log:
Regression fix: Handle pointer arithmetic in unary ++/--.

Modified:
    cfe/trunk/Analysis/GRExprEngine.cpp

Modified: cfe/trunk/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRExprEngine.cpp?rev=47449&r1=47448&r2=47449&view=diff

==============================================================================
--- cfe/trunk/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/Analysis/GRExprEngine.cpp Thu Feb 21 13:29:23 2008
@@ -696,12 +696,12 @@
         continue;
       }
       
-      // Handle all NonLVals.
+      // Handle all other values.
       
       BinaryOperator::Opcode Op = U->isIncrementOp() ? BinaryOperator::Add
                                                      : BinaryOperator::Sub;
       
-      RVal Result = EvalBinOp(Op, cast<NonLVal>(V), MakeConstantVal(1U, U));
+      RVal Result = EvalBinOp(Op, V, MakeConstantVal(1U, U));
       
       if (U->isPostfix())
         St = SetRVal(SetRVal(St, U, V), SubLV, Result);





More information about the cfe-commits mailing list