glsl: Move ir_type_unset to end of enumeration.
authorMatt Turner <mattst88@gmail.com>
Sat, 31 May 2014 23:27:20 +0000 (16:27 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 4 Jun 2014 00:58:34 +0000 (17:58 -0700)
commit773544f0e95e6732e27ce8f6c4567f221f0d2dac
treebf7d0e0d42402c399ce3f7c3d85784ee1bfc456c
parent943cc7ff173bc815553d9608ac73de8dc29729d3
glsl: Move ir_type_unset to end of enumeration.

Now that the constructors set a type, ir_type_unset is not very useful.
Move it to the end of the enum (specifically out of position 0) so that
enums checks for dereferences and rvalues can save an instruction.

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
src/glsl/ir.h
src/glsl/ir_validate.cpp