Sema: fix missed block OPV

This commit is contained in:
Andrew Kelley 2025-07-21 16:43:30 -07:00
parent 85b997b346
commit 7d02b693be

View file

@ -6562,6 +6562,11 @@ fn resolveAnalyzedBlock(
} }, } },
}); });
} }
if (try sema.typeHasOnePossibleValue(resolved_ty)) |block_only_value| {
return Air.internedToRef(block_only_value.toIntern());
}
return merges.block_inst.toRef(); return merges.block_inst.toRef();
} }