mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
nir: Use set_parent_instr internally
This properly clears is_if. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24671>
This commit is contained in:
parent
19f8e0e3aa
commit
ad619da3bc
1 changed files with 1 additions and 1 deletions
|
|
@ -1518,7 +1518,7 @@ read_phi(read_ctx *ctx, nir_block *blk, union packed_instr header)
|
|||
* we have to set the parent_instr manually. It doesn't really matter
|
||||
* when we do it, so we might as well do it here.
|
||||
*/
|
||||
src->src.parent_instr = &phi->instr;
|
||||
nir_src_set_parent_instr(&src->src, &phi->instr);
|
||||
|
||||
/* Stash it in the list of phi sources. We'll walk this list and fix up
|
||||
* sources at the very end of read_function_impl.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue