From: Ted Kremenek Date: Thu, 21 Feb 2008 22:08:33 +0000 (+0000) Subject: Regression fix: Handle binary operators where both the left and right X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10c16657eec144def180ee53d1e0249c9ed2b3b5;p=clang 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 --- 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; }