Re: [Mesa-dev] [PATCH] glsl: Make ir_validate actually visit ir_if nodes.

2011-08-22 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/20/2011 12:37 AM, Kenneth Graunke wrote: > 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 fi

[Mesa-dev] [PATCH] glsl: Make ir_validate actually visit ir_if nodes.

2011-08-20 Thread Kenneth Graunke
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. Sign