glsl: Fix ir_expression::constant_expression_value()
authorChad Versace <chad.versace@intel.com>
Tue, 9 Nov 2010 01:30:13 +0000 (17:30 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 9 Nov 2010 08:50:54 +0000 (00:50 -0800)
commitb62c1c4595551c4936323135224a5ea686ba972a
tree6d5abd07ed67896faf195e693e9c5c77535a8767
parentd7855ee3323e8493f139af70db9d0cdb853c2a08
glsl: Fix ir_expression::constant_expression_value()

When the type of the ir_expression is error_type, return NULL.
This fixes bug 31371.
src/glsl/ir_constant_expression.cpp