mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Make struct_declaration_without_vars return void.
This commit is contained in:
committed by
Henri Verbeet
parent
922cb47a4b
commit
58706474ec
Notes:
Henri Verbeet
2025-04-16 16:52:17 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1460
@@ -6766,7 +6766,6 @@ static void validate_uav_type(struct hlsl_ctx *ctx, enum hlsl_sampler_dim dim,
|
||||
%type <block> selection_statement
|
||||
%type <block> statement
|
||||
%type <block> statement_list
|
||||
%type <block> struct_declaration_without_vars
|
||||
%type <block> switch_statement
|
||||
%type <block> unary_expr
|
||||
|
||||
@@ -7021,9 +7020,6 @@ struct_declaration_without_vars:
|
||||
if ($1)
|
||||
hlsl_error(ctx, &@1, VKD3D_SHADER_ERROR_HLSL_INVALID_MODIFIER,
|
||||
"Modifiers are not allowed on struct type declarations.");
|
||||
|
||||
if (!($$ = make_empty_block(ctx)))
|
||||
YYABORT;
|
||||
}
|
||||
|
||||
struct_spec:
|
||||
@@ -8144,6 +8140,10 @@ type:
|
||||
declaration_statement:
|
||||
declaration
|
||||
| struct_declaration_without_vars
|
||||
{
|
||||
if (!($$ = make_empty_block(ctx)))
|
||||
YYABORT;
|
||||
}
|
||||
| typedef
|
||||
{
|
||||
if (!($$ = make_empty_block(ctx)))
|
||||
|
Reference in New Issue
Block a user