[PATCH vkd3d 1/8] vkd3d-shader/hlsl: Use a more sensible source location in add_constructor().

Francisco Casas fcasas at codeweavers.com
Tue May 3 09:14:24 CDT 2022


Signed-off-by: Francisco Casas <fcasas at codeweavers.com>


May 3, 2022 6:14 AM, "Giovanni Mascellani" <gmascellani at codeweavers.com> wrote:

> Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
> Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
> ---
> libs/vkd3d-shader/hlsl.y | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y
> index 905dbfc5..e518430f 100644
> --- a/libs/vkd3d-shader/hlsl.y
> +++ b/libs/vkd3d-shader/hlsl.y
> @@ -2049,7 +2049,7 @@ static struct list *add_constructor(struct hlsl_ctx *ctx, struct hlsl_type
> *type
> continue;
> }
> 
> - initialize_var_components(ctx, params->instrs, var, &idx, arg, &loc);
> + initialize_var_components(ctx, params->instrs, var, &idx, arg, &arg->loc);
> }
> 
> if (!(load = hlsl_new_var_load(ctx, var, loc)))
> -- 
> 2.36.0



More information about the wine-devel mailing list