vkd3d-shader/hlsl: Remove an unused local variable from create_loop().

This commit is contained in:
Zebediah Figura 2022-11-14 19:27:45 -06:00 committed by Alexandre Julliard
parent 39a03cfd22
commit 0959c6663f
Notes: Alexandre Julliard 2023-04-20 22:58:03 +02: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/169

View File

@ -444,7 +444,6 @@ static struct list *create_loop(struct hlsl_ctx *ctx, enum loop_type type, struc
{ {
struct list *list = NULL; struct list *list = NULL;
struct hlsl_ir_loop *loop = NULL; struct hlsl_ir_loop *loop = NULL;
struct hlsl_ir_if *cond_jump = NULL;
if (!(list = make_empty_list(ctx))) if (!(list = make_empty_list(ctx)))
goto oom; goto oom;
@ -477,7 +476,6 @@ static struct list *create_loop(struct hlsl_ctx *ctx, enum loop_type type, struc
oom: oom:
vkd3d_free(loop); vkd3d_free(loop);
vkd3d_free(cond_jump);
vkd3d_free(list); vkd3d_free(list);
destroy_instr_list(init); destroy_instr_list(init);
destroy_instr_list(cond); destroy_instr_list(cond);