diff options
author | Eric Anholt <eric@anholt.net> | 2012-01-30 09:41:55 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2012-02-03 11:06:57 +0100 |
commit | 663dcbbffeaedf0643e7e9d930ccfbcd698d1d9c (patch) | |
tree | a9e5f92fb5962d6e28a57446b6f6c303e90aff4a /src/glsl | |
parent | 2c3e10e71935506798c413363df27afc4348fb53 (diff) | |
download | external_mesa3d-663dcbbffeaedf0643e7e9d930ccfbcd698d1d9c.zip external_mesa3d-663dcbbffeaedf0643e7e9d930ccfbcd698d1d9c.tar.gz external_mesa3d-663dcbbffeaedf0643e7e9d930ccfbcd698d1d9c.tar.bz2 |
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>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/glsl_parser.yy | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index e774b46..8368d06 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -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); } ; |