glsl: check if return_deref in lower_subroutine_visitor::visit_leave isn't NULL
authorKai Wasserbäch <kai@dev.carbon-project.org>
Fri, 14 Aug 2015 12:49:43 +0000 (14:49 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 20 Aug 2015 23:23:52 +0000 (09:23 +1000)
commit6921f170b62d9f9c0e5bd2cb6666c15395addba8
treeb71b3a717e10da64eaafb6a23fcc34f69dbe4647
parent3e6adbd761f72b612aba57fd86bb5203aae07133
glsl: check if return_deref in lower_subroutine_visitor::visit_leave isn't NULL

Fixes a crash in Piglit's
spec@arb_shader_subroutine@linker@no-mutual-recursion.vert for me.

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/glsl/lower_subroutine.cpp