mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Return an hlsl_ir_node pointer from hlsl_new_bool_constant().
This commit is contained in:
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
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user