mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 03:00:23 +01:00
mesa/program: remove useless YYID
This fixes the build with Bison 3.0. Also works with Bison 2.7.1.
CC: "9.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 5ffa28df4e)
This commit is contained in:
parent
24d1949ddc
commit
a98d5f2663
1 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ static struct asm_instruction *asm_instruction_copy_ctor(
|
|||
|
||||
#define YYLLOC_DEFAULT(Current, Rhs, N) \
|
||||
do { \
|
||||
if (YYID(N)) { \
|
||||
if (N) { \
|
||||
(Current).first_line = YYRHSLOC(Rhs, 1).first_line; \
|
||||
(Current).first_column = YYRHSLOC(Rhs, 1).first_column; \
|
||||
(Current).position = YYRHSLOC(Rhs, 1).position; \
|
||||
|
|
@ -112,7 +112,7 @@ static struct asm_instruction *asm_instruction_copy_ctor(
|
|||
(Current).position = YYRHSLOC(Rhs, 0).position \
|
||||
+ (Current).first_column; \
|
||||
} \
|
||||
} while(YYID(0))
|
||||
} while(0)
|
||||
%}
|
||||
|
||||
%pure-parser
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue