diff options
| author | Charles.Forsyth <devnull@localhost> | 2008-02-01 17:25:06 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2008-02-01 17:25:06 +0000 |
| commit | acf16bbe632adbae6f2caf3210136c47ecee6a62 (patch) | |
| tree | 2cf2b569b85b8b49f61d06b70c50167da8008bad /limbo | |
| parent | 80146ec649f45bdf6575689b673bc11acaacb920 (diff) | |
20080201-1732
Diffstat (limited to 'limbo')
| -rw-r--r-- | limbo/gen.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 = "??"; |
