aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKristian H. Kristensen <[email protected]>2020-04-23 11:33:57 -0700
committerMarge Bot <[email protected]>2020-04-25 00:03:43 +0000
commitc801228f0d0567842d20da655e252c1e617b963a (patch)
tree8d2a02b48f8d4985ffc3ab608613b62150992e8f /src
parent34e7179dfa2217d003e398cae6f797a0b2dd6aee (diff)
freedreno/ir3: Reset lex line number when we start parsing
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4741>
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/ir3/ir3_parser.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_parser.y b/src/freedreno/ir3/ir3_parser.y
index b42ea9d4fe2..c9cede4b725 100644
--- a/src/freedreno/ir3/ir3_parser.y
+++ b/src/freedreno/ir3/ir3_parser.y
@@ -196,6 +196,7 @@ int yydebug;
extern int yylex(void);
extern FILE *ir3_yyin;
+void ir3_yyset_lineno(int _line_number);
int yyparse(void);
@@ -207,6 +208,7 @@ static void yyerror(const char *error)
struct ir3 * ir3_parse(struct ir3_shader_variant *v,
struct ir3_kernel_info *k, FILE *f)
{
+ ir3_yyset_lineno(1);
ir3_yyin = f;
#ifdef YYDEBUG
yydebug = 1;