summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();
}
}
}