diff options
Diffstat (limited to 'src/compiler/nir/nir.c')
-rw-r--r-- | src/compiler/nir/nir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 91206a92717..7e41ed37b0d 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -323,6 +323,8 @@ nir_function_impl_create(nir_function *function) impl->return_var->type = function->return_type; impl->return_var->data.mode = nir_var_param; impl->return_var->data.location = -1; + } else { + impl->return_var = NULL; } return impl; |