aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/ir.c
diff options
context:
space:
mode:
Diffstat (limited to 'ir/ir.c')
-rw-r--r--ir/ir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/ir.c b/ir/ir.c
index 5ffea49..3b37405 100644
--- a/ir/ir.c
+++ b/ir/ir.c
@@ -255,6 +255,8 @@ freeblk(struct function *fn, struct block *blk)
{
if (blk->npred > 1)
xbfree(blk->_pred);
+ blk->npred = 0;
+ blk->_pred = NULL;
for (int i = 0; i < blk->phi.n; ++i) {
int ui = blk->phi.p[i];