summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_lower_passthrough_edgeflags.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_lower_passthrough_edgeflags.c')
-rw-r--r--src/compiler/nir/nir_lower_passthrough_edgeflags.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler/nir/nir_lower_passthrough_edgeflags.c b/src/compiler/nir/nir_lower_passthrough_edgeflags.c
index c570c8ef33..f34078c899 100644
--- a/src/compiler/nir/nir_lower_passthrough_edgeflags.c
+++ b/src/compiler/nir/nir_lower_passthrough_edgeflags.c
@@ -52,7 +52,5 @@ lower_impl(nir_function_impl *impl)
void nir_lower_passthrough_edgeflags(nir_shader *shader)
{
- nir_function *function = nir_shader_get_entrypoint(shader);
- if (function->impl)
- lower_impl(function->impl);
+ lower_impl(nir_shader_get_entrypoint(shader));
}