d3dcompiler: Fix the location for a warning.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Liam Middlebrook <lmiddlebrook@nvidia.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-03-19 18:07:11 -05:00 committed by Alexandre Julliard
parent 529608f10e
commit e0948524f2
1 changed files with 1 additions and 1 deletions

View File

@ -1257,7 +1257,7 @@ struct_declaration: var_modifiers struct_spec variables_def_optional ';'
{
if (!$2->name)
{
hlsl_report_message(get_location(&@1), HLSL_LEVEL_ERROR,
hlsl_report_message(get_location(&@2), HLSL_LEVEL_ERROR,
"anonymous struct declaration with no variables");
}
if (modifiers)