mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 10:14:13 +08:00
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:
parent
8f25cc0bbc
commit
4299809321
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user