mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +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>
(cherry picked from commit 663dcbbffe)
This commit is contained in:
parent
728bda08d8
commit
2b4df494b1
1 changed files with 2 additions and 0 deletions
|
|
@ -1691,10 +1691,12 @@ case_label:
|
|||
CASE expression ':'
|
||||
{
|
||||
$$ = new(state) ast_case_label($2);
|
||||
$$->set_location(yylloc);
|
||||
}
|
||||
| DEFAULT ':'
|
||||
{
|
||||
$$ = new(state) ast_case_label(NULL);
|
||||
$$->set_location(yylloc);
|
||||
}
|
||||
;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue