[cfe-commits] r153226 - in /cfe/trunk: lib/AST/ExprConstant.cpp test/Sema/return.c
Sebastian Redl
sebastian.redl at getdesigned.at
Fri Mar 23 08:04:10 PDT 2012
On 22.03.2012 00:30, Richard Trieu wrote:
> Author: rtrieu
> Date: Wed Mar 21 18:30:30 2012
> New Revision: 153226
>
> URL: http://llvm.org/viewvc/llvm-project?rev=153226&view=rev
> Log:
> Change the binary operator data recursive evaluator to not stop at the first
> non-constant value encountered. This allows the evaluator to deduce that
> expressions like (x< 5 || true) is equal to true. Previously, it would visit
> x and determined that the entire expression is could not evaluated to a
> constant.
>
It should still stop evaluating if the LHS has side effects. Does that
work correctly?
Sebastian
More information about the cfe-commits
mailing list