glsl: do not crash if string literal is used outside of #include/#line
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Wed, 11 Mar 2020 13:29:12 +0000 (15:29 +0200)
committerDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Fri, 13 Mar 2020 09:49:06 +0000 (11:49 +0200)
commit1305b932747ff4f8ab0253b12dc979dcbfd6777b
treeacb06a6915eefd69fd32a050a8e2cf00b7012288
parentf8051f77ea00934cc00d9f55f1a737c50037af65
glsl: do not crash if string literal is used outside of #include/#line

Fixes: 67b32190f3c953c5b7091d76ddeff95c0cbfb439
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2619
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4146>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4146>
src/compiler/glsl/glcpp/glcpp-parse.y