mirror of
https://github.com/ziglang/zig.git
synced 2025-12-21 05:33:15 +00:00
Sema: fix missed block OPV
This commit is contained in:
parent
85b997b346
commit
7d02b693be
@ -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…
x
Reference in New Issue
Block a user