From b02f955c9d23170ea539d6e955ca4718f83d37ea Mon Sep 17 00:00:00 2001 From: "Vladimir N. Makarov" Date: Tue, 4 Jun 2024 14:35:38 -0400 Subject: [PATCH] Remove unreachable bbs in clone_bbs. --- mir-gen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mir-gen.c b/mir-gen.c index 3dd7593493..b17a5d73a3 100644 --- a/mir-gen.c +++ b/mir-gen.c @@ -2100,7 +2100,10 @@ static int clone_bbs (gen_ctx_t gen_ctx) { } }); } - if (res) enumerate_bbs (gen_ctx); + if (res) { + remove_unreachable_bbs (gen_ctx); + enumerate_bbs (gen_ctx); + } return res; }