mie: ir: op: fix crash when checking if an unresolved op is isolated

This commit is contained in:
2026-01-25 15:02:17 +00:00
parent a22e95d88d
commit d44bc8c5c0

View File

@@ -108,6 +108,10 @@ struct mie_op_successor *mie_op_add_successor(
static bool is_isolated(const struct mie_op *op) 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( const struct mie_trait *isolated = mie_trait_table_get_unique(
&op->op_info->op_traits, "builtin", "isolated-from-above"); &op->op_info->op_traits, "builtin", "isolated-from-above");
return isolated != NULL; return isolated != NULL;