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:
@@ -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);
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user