qbe

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

commit 02b70c0cb1203a9a3cc9a0bda0f013188a2a4942
parent 1f4ff634187a9127ab160b2651c9decd80e82435
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Tue, 12 Apr 2016 14:44:45 -0400

bug in checking of multiple definitions

Diffstat:
Mparse.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/parse.c b/parse.c @@ -530,13 +530,13 @@ parseline(PState ps) break; case TLbl: b = findblk(tokval.str); - if (b->jmp.type != JXXX) - err("multiple definitions of block"); if (curb && curb->jmp.type == JXXX) { closeblk(); curb->jmp.type = JJmp; curb->s1 = b; } + if (b->jmp.type != JXXX) + err("multiple definitions of block @%s", b->name); *blink = b; curb = b; plink = &curb->phi;