Avoid generating ir_if for &&, || short-circuiting with constant LHS.
authorEric Anholt <eric@anholt.net>
Fri, 16 Apr 2010 20:49:04 +0000 (13:49 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 16 Apr 2010 20:49:04 +0000 (13:49 -0700)
commit44b694e1f621730bca1cd03eabdfe5474d818f18
tree251a60ae0a474dec18ce1b9bf82787d40e452c27
parent0d42321ec1aaeaf60ee2dd8b1872182065ebc057
Avoid generating ir_if for &&, || short-circuiting with constant LHS.

It was breaking constant expression detection for constant
initializers, i.e. CorrectParse2.frag, CorrectParse2.vert.
ast_to_hir.cpp