qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit a7f459b291b5cf7bc4f62061cadb14a93b0c29c1
parent 3765d2c33dbb29058fdab7b533ae8f981018e1d2
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Fri,  3 Jul 2015 15:23:39 -0400

remove useless errstr

Diffstat:
Mlisc/parse.c | 5-----
1 file changed, 0 insertions(+), 5 deletions(-)

diff --git a/lisc/parse.c b/lisc/parse.c @@ -45,7 +45,6 @@ enum Token { static FILE *inf; -static char *errstr; static Token thead; static Sym sym[NTemps]; @@ -80,9 +79,6 @@ static void err(char *s) { /* todo, export the error handling in util.c */ - if (!s) - s = errstr; - assert(s); fprintf(stderr, "parse error: %s (line %d)\n", s, lnum); exit(1); } @@ -238,7 +234,6 @@ parseref() abort(); return CONST(tokval.num); default: - errstr = "number or variable expected"; return R; } }