glsl: Make ir_validate actually visit ir_if nodes.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Aug 2011 20:52:28 +0000 (13:52 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 22 Aug 2011 17:30:47 +0000 (10:30 -0700)
commit6c8ea1eed66e9da82fb2b49b1e7f6d7f6064dbc4
treeab33eedff25a61ea02615250188127caa1664609
parent69595283b64d1f01b33022c38468376ad8596ea7
glsl: Make ir_validate actually visit ir_if nodes.

There is no ir_hierarchical_visitor::visit(ir_if *) method, since ir_if
is not a leaf node.  Instead, there are visit_enter and visit_leave
methods.  Use visit_enter arbitrarily (either would work fine, though
visit_enter will catch errors sooner).

Found thanks to a warning emitted by Clang.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir_validate.cpp