glsl: Minor code compaction in _mesa_ast_array_index_to_hir
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 15 Mar 2013 22:09:48 +0000 (15:09 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 8 Apr 2013 22:17:05 +0000 (15:17 -0700)
commitf9d8ca281750baf07ba623f86121f5a875f9bd40
tree8cd355fc3dd1a26de36af929cc9bd55a0ca5dfb4
parent2c333a878cd4a93ac32e658cc0e30b9bf9589e9d
glsl: Minor code compaction in _mesa_ast_array_index_to_hir

Also, document the reason for not checking for type->is_array in some of
the bound-checking cases.

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