From acf16bbe632adbae6f2caf3210136c47ecee6a62 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 1 Feb 2008 17:25:06 +0000 Subject: 20080201-1732 --- limbo/gen.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'limbo') diff --git a/limbo/gen.c b/limbo/gen.c index feb87d64..64dce6e5 100644 --- a/limbo/gen.c +++ b/limbo/gen.c @@ -590,10 +590,11 @@ foldbranch(Inst *in) next = in->next; *in = *b; in->next = next; - /* b->reach = 1; */ /* why ? */ + if(b->op == IRET) + b->reach = 1; /* might be default return (TO DO) */ continue; } - foldbranch(in->branch); + foldbranch(b); return; default: if(in->branch != nil) @@ -976,7 +977,7 @@ instconv(Fmt *f) in = va_arg(f->args, Inst*); op = nil; - if(in->op >= 0 && in->op < MAXDIS) + if(in->op < MAXDIS) op = instname[in->op]; if(op == nil) op = "??"; -- cgit v1.2.3