summaryrefslogtreecommitdiff
path: root/mi/cfg.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-10-23 23:29:24 -0700
committerOri Bernstein <ori@eigenstate.org>2015-11-06 00:38:56 -0800
commit650b63c3d3fbf7935cfc3db0da322b49b02f0388 (patch)
tree23568dd63fab88b80daad55cdbf5e08da2d1c40d /mi/cfg.c
parent26e54d3c7cbaab5efa5e63a32b87b49328fd5f6b (diff)
downloadmc-650b63c3d3fbf7935cfc3db0da322b49b02f0388.tar.gz
Working pattern matching.
Diffstat (limited to 'mi/cfg.c')
-rw-r--r--mi/cfg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mi/cfg.c b/mi/cfg.c
index 94664c6..de6ddb1 100644
--- a/mi/cfg.c
+++ b/mi/cfg.c
@@ -65,11 +65,12 @@ static int addnode(Cfg *cfg, Bb *bb, Node *n)
lappend(&cfg->fixjmp, &cfg->nfixjmp, n);
lappend(&cfg->fixblk, &cfg->nfixblk, bb);
return 1;
- break;
case Ocall:
lappend(&bb->nl, &bb->nnl, n);
return isnonretcall(n->expr.args[0]);
- break;
+ case Odead:
+ lappend(&bb->nl, &bb->nnl, n);
+ return 1;
default:
lappend(&bb->nl, &bb->nnl, n);
break;