glsl2: Flatten expressions that appear as the children of ir_return as well.

This commit is contained in:
Eric Anholt
2010-07-12 19:31:54 -07:00
parent 31a97868fc
commit 94da2abfd4
+3 -5
View File
@@ -176,9 +176,7 @@ ir_expression_flattening_visitor::visit_enter(ir_call *ir)
ir_visitor_status
ir_expression_flattening_visitor::visit_enter(ir_return *ir)
{
/* FINISHME: Why not process the return value? (Same behavior as original
* FINISHME: code.)
*/
(void) ir;
return visit_continue_with_parent;
if (ir->value)
ir->value = operand_to_temp(ir->value);
return visit_continue;
}