mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Sema: fix missed block OPV
This commit is contained in:
parent
85b997b346
commit
7d02b693be
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue