Module: vkd3d Branch: master Commit: 6c2472ce16f4f45ba6ad5dcf60fbb841962a92cf URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/6c2472ce16f4f45ba6ad5dcf60fbb8...
Author: Zebediah Figura zfigura@codeweavers.com Date: Thu Nov 10 19:18:52 2022 -0600
vkd3d-shader/hlsl: Remove some unnecessary YYABORTs from the func_prototype_no_attrs rule.
---
libs/vkd3d-shader/hlsl.y | 4 ---- 1 file changed, 4 deletions(-)
diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y index a377a377..71dfe03f 100644 --- a/libs/vkd3d-shader/hlsl.y +++ b/libs/vkd3d-shader/hlsl.y @@ -3967,11 +3967,8 @@ func_prototype_no_attrs: struct hlsl_type *type;
if (modifiers & ~HLSL_MODIFIERS_MAJORITY_MASK) - { hlsl_error(ctx, &@1, VKD3D_SHADER_ERROR_HLSL_INVALID_MODIFIER, "Only majority modifiers are allowed on functions."); - YYABORT; - } if (!(type = apply_type_modifiers(ctx, $2, &modifiers, @1))) YYABORT; if ((var = hlsl_get_var(ctx->globals, $3))) @@ -3980,7 +3977,6 @@ func_prototype_no_attrs: ""%s" is already declared as a variable.", $3); hlsl_note(ctx, &var->loc, VKD3D_SHADER_LOG_ERROR, ""%s" was previously declared here.", $3); - YYABORT; } if (hlsl_types_are_equal(type, ctx->builtin_types.Void) && $7.semantic.name) {