qbe

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

commit 1d62b4bf478a17d7b825bb0064a50dba570dfe01
parent 1e0d8e2f64ee03027439a111267a46d143ea5430
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Fri, 10 Jul 2015 05:51:16 -0400

fix multiple block definition check

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

diff --git a/lisc/parse.c b/lisc/parse.c @@ -317,8 +317,8 @@ parseline(PState ps) } } curb = b; - if (curb->np || curb->ni) - err("block already defined"); + if (curb->jmp.type != JXXX) + err("multiple definitions of block"); expect(TNL); return PPhi; case TRet: