From 10c16657eec144def180ee53d1e0249c9ed2b3b5 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 21 Feb 2008 22:08:33 +0000 Subject: [PATCH] Regression fix: Handle binary operators where both the left and right operands are symbolic lvalues. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47459 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Analysis/PathSensitive/GRExprEngine.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/clang/Analysis/PathSensitive/GRExprEngine.h b/include/clang/Analysis/PathSensitive/GRExprEngine.h index 8e66b9c327..7fa5297daa 100644 --- a/include/clang/Analysis/PathSensitive/GRExprEngine.h +++ b/include/clang/Analysis/PathSensitive/GRExprEngine.h @@ -358,11 +358,7 @@ public: RVal EvalComplement(RVal X) { return X.isValid() ? TF->EvalComplement(ValMgr, cast(X)) : X; } - - RVal EvalBinOp(BinaryOperator::Opcode Op, LVal L, RVal R) { - return R.isValid() ? TF->EvalBinOp(ValMgr, Op, L, cast(R)) : R; - } - + RVal EvalBinOp(BinaryOperator::Opcode Op, NonLVal L, RVal R) { return R.isValid() ? TF->EvalBinOp(ValMgr, Op, L, cast(R)) : R; } -- 2.50.1