vkd3d-shader/hlsl: Use hlsl_block_add_instr() in clone_block().

This commit is contained in:
Zebediah Figura 2023-06-25 18:09:34 -05:00 committed by Alexandre Julliard
parent 4ae00cea43
commit cf6bc95a3d
Notes: Alexandre Julliard 2023-08-08 21:47:28 +09:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/290

View File

@ -1544,7 +1544,7 @@ static bool clone_block(struct hlsl_ctx *ctx, struct hlsl_block *dst_block,
hlsl_block_cleanup(dst_block);
return false;
}
list_add_tail(&dst_block->instrs, &dst->entry);
hlsl_block_add_instr(dst_block, dst);
if (!list_empty(&src->uses))
{