Zebediah Figura : vkd3d-shader: Remove a duplicate check for semantics on void functions.
Module: vkd3d Branch: master Commit: d423f8f46986ccaaff91e3d759311ed2a1bc75ef URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=d423f8f46986ccaaff91e3d7... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Tue Mar 2 15:34:45 2021 -0600 vkd3d-shader: Remove a duplicate check for semantics on void functions. Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com> Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 f1db9be..d733a9b 100644 --- a/libs/vkd3d-shader/hlsl.y +++ b/libs/vkd3d-shader/hlsl.y @@ -1765,10 +1765,6 @@ hlsl_prog: } } - if (hlsl_type_is_void($2.decl->return_type) && $2.decl->semantic) - hlsl_error(ctx, $2.decl->loc, VKD3D_SHADER_ERROR_HLSL_INVALID_SEMANTIC, - "Semantics are not allowed on void functions."); - hlsl_add_function(&ctx->functions, $2.name, $2.decl, false); } | hlsl_prog declaration_statement
participants (1)
-
Alexandre Julliard