Commit a026aae7 authored by Erik Faye-Lund 's avatar Erik Faye-Lund

microsoft/compiler: properly handle failure in add_sysvalue

parent 141dd8f2
......@@ -4258,9 +4258,13 @@ append_input_or_sysvalue(struct ntd_context *ctx, nir_shader *s,
ctx->system_value[sv_slot] = add_sysvalue(ctx, s, sv_slot, name, driver_location);
if (!ctx->system_value[sv_slot])
return false;
exec_list_push_tail(&s->system_values, &ctx->system_value[sv_slot]->node);
return (ctx->system_value[sv_slot] != NULL);
return true;
struct sysvalue_name {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment