diff options
-rw-r--r-- | flowgraph.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/flowgraph.c b/flowgraph.c index 8fc22dcf..73c29fc9 100644 --- a/flowgraph.c +++ b/flowgraph.c @@ -166,6 +166,10 @@ void domtree_build(struct entrypoint *ep) } END_FOR_EACH_PTR(b); } while (changed); + FOR_EACH_PTR(ep->bbs, bb) { + free_ptr_list(&bb->doms); + } END_FOR_EACH_PTR(bb); + // set the idom links FOR_EACH_PTR(ep->bbs, bb) { struct basic_block *idom = doms[bb->postorder_nr]; |