mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
glsl: Add missing location info to case labels.
Otherwise, the upcoming error messages said the location was 0:0(0). NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
2c3e10e719
commit
663dcbbffe
1 changed files with 2 additions and 0 deletions
|
|
@ -1691,10 +1691,12 @@ case_label:
|
||||||
CASE expression ':'
|
CASE expression ':'
|
||||||
{
|
{
|
||||||
$$ = new(state) ast_case_label($2);
|
$$ = new(state) ast_case_label($2);
|
||||||
|
$$->set_location(yylloc);
|
||||||
}
|
}
|
||||||
| DEFAULT ':'
|
| DEFAULT ':'
|
||||||
{
|
{
|
||||||
$$ = new(state) ast_case_label(NULL);
|
$$ = new(state) ast_case_label(NULL);
|
||||||
|
$$->set_location(yylloc);
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue