From d44bc8c5c0d0490d2e5d4d6e9e5c5db6ea376843 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 25 Jan 2026 15:02:17 +0000 Subject: [PATCH] mie: ir: op: fix crash when checking if an unresolved op is isolated --- mie/ir/op.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mie/ir/op.c b/mie/ir/op.c index b8aede7..88dd13b 100644 --- a/mie/ir/op.c +++ b/mie/ir/op.c @@ -108,6 +108,10 @@ struct mie_op_successor *mie_op_add_successor( static bool is_isolated(const struct mie_op *op) { + if (!(op->op_flags & MIE_OP_F_OP_RESOLVED)) { + return false; + } + const struct mie_trait *isolated = mie_trait_table_get_unique( &op->op_info->op_traits, "builtin", "isolated-from-above"); return isolated != NULL;