summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-29 13:42:39 -0700
committerEric Anholt <[email protected]>2010-07-29 14:02:10 -0700
commit4285247f12d45b0505da06773d7cafcd2c296fb5 (patch)
treebf2f72e6a0eb68ea69dbec30ff82dd3d56a4560c /src/glsl
parentd6942460cec5ffb69dfee7492f7dac59872735de (diff)
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.
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ir_function_inlining.cpp1
1 files changed, 1 insertions, 0 deletions
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();
}
}
}