From: Eric Anholt Date: Thu, 29 Jul 2010 20:42:39 +0000 (-0700) Subject: glsl2: Remove an inlined unvalued return statement. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4285247f12d45b0505da06773d7cafcd2c296fb5;p=mesa.git 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. --- diff --git a/src/glsl/ir_function_inlining.cpp b/src/glsl/ir_function_inlining.cpp index b143190ff6e..9daffeb0171 100644 --- a/src/glsl/ir_function_inlining.cpp +++ b/src/glsl/ir_function_inlining.cpp @@ -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(); } } }