glsl2: Remove an inlined unvalued return statement.

We already have asserts that it was the last call in the function, so
it's safe to remove after it got cloned in.

Fixes:
glsl-fs-functions-4.
This commit is contained in:
Eric Anholt
2010-07-29 13:42:39 -07:00
parent d6942460ce
commit 4285247f12
+1
View File
@@ -97,6 +97,7 @@ replace_return_with_assignment(ir_instruction *ir, void *data)
* have reached here. (see can_inline()).
*/
assert(!ret->next->is_tail_sentinal());
ret->remove();
}
}
}