Regression fix: Handle pointer arithmetic in unary ++/--.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47449 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Analysis/GRExprEngine.cpp b/Analysis/GRExprEngine.cpp
index 16361c6..66f5cae 100644
--- a/Analysis/GRExprEngine.cpp
+++ b/Analysis/GRExprEngine.cpp
@@ -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);