diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/nir/nir_print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 66c0669b594..f4811fe8bc1 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -257,7 +257,7 @@ static const char * get_var_name(nir_variable *var, print_state *state) { if (state->ht == NULL) - return var->name; + return var->name ? var->name : "unnamed"; assert(state->syms); |