From: Zhongxing Xu Date: Mon, 10 Jan 2011 03:22:57 +0000 (+0000) Subject: The isPrefix() checking is redundant. Lvalue incremental/decremental expressions X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b08624414a923e0df93dd7630fee51b0ff3cb7b1;p=clang The isPrefix() checking is redundant. Lvalue incremental/decremental expressions are all prefixes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123156 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Checkers/ExprEngine.cpp b/lib/StaticAnalyzer/Checkers/ExprEngine.cpp index 67ddcce859..7c1d313453 100644 --- a/lib/StaticAnalyzer/Checkers/ExprEngine.cpp +++ b/lib/StaticAnalyzer/Checkers/ExprEngine.cpp @@ -2987,7 +2987,7 @@ void ExprEngine::VisitUnaryOperator(const UnaryOperator* U, // Since the lvalue-to-rvalue conversion is explicit in the AST, // we bind an l-value if the operator is prefix and an lvalue (in C++). - if (U->isPrefix() && U->isLValue()) + if (U->isLValue()) state = state->BindExpr(U, loc); else state = state->BindExpr(U, V2);