mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
nir/builder: Simplify nir_ssa_undef a bit
This commit is contained in:
parent
ab31951bef
commit
b75d770963
1 changed files with 1 additions and 2 deletions
|
|
@ -83,8 +83,7 @@ nir_ssa_undef(nir_builder *build, unsigned num_components, unsigned bit_size)
|
|||
if (!undef)
|
||||
return NULL;
|
||||
|
||||
nir_instr_insert(nir_before_block(nir_start_block(build->impl)),
|
||||
&undef->instr);
|
||||
nir_instr_insert(nir_before_cf_list(&build->impl->body), &undef->instr);
|
||||
|
||||
return &undef->def;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue