glsl2: Check for non-void functions that don't have a return statement.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Jun 2010 16:59:40 +0000 (09:59 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 29 Jun 2010 18:12:54 +0000 (11:12 -0700)
commit6de825650560198eb97f19e72b2d56e68e3d7a63
tree6d2a132288a0526b9f32eb02e67c46040e5cd558
parentac04c257e31fe012dac750bcf5bf3134ba07ebdc
glsl2: Check for non-void functions that don't have a return statement.

This doesn't do any control flow analysis to ensure that the return
statements are actually reached.

Fixes piglit tests function5.frag and function-07.vert.
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser_extras.h