vkd3d-shader/hlsl: Return an hlsl_ir_node pointer from hlsl_new_bool_constant().

This commit is contained in:
Zebediah Figura
2022-11-10 19:37:41 -06:00
committed by Alexandre Julliard
parent 0654d88edd
commit 1bf3aa9275
Notes: Alexandre Julliard 2023-04-18 22:35:06 +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/153
4 changed files with 13 additions and 13 deletions

View File

@@ -5350,13 +5350,13 @@ primary_expr:
}
| boolean
{
struct hlsl_ir_constant *c;
struct hlsl_ir_node *c;
if (!(c = hlsl_new_bool_constant(ctx, $1, &@1)))
YYABORT;
if (!($$ = make_list(ctx, &c->node)))
if (!($$ = make_list(ctx, c)))
{
hlsl_free_instr(&c->node);
hlsl_free_instr(c);
YYABORT;
}
}