nir: return def for debug info in nir_instr_def

Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32235>
This commit is contained in:
Georg Lehmann 2024-11-19 22:44:11 +01:00 committed by Marge Bot
parent 8f25cc0bbc
commit 4299809321

View File

@ -1351,9 +1351,11 @@ nir_instr_def(nir_instr *instr)
case nir_instr_type_undef:
return &nir_instr_as_undef(instr)->def;
case nir_instr_type_debug_info:
return &nir_instr_as_debug_info(instr)->def;
case nir_instr_type_call:
case nir_instr_type_jump:
case nir_instr_type_debug_info:
return NULL;
}