zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit aaee26bb1914a3d4e385bd120515813ece80311d (tree)
parent 0ecbd5a0e113c0c771ef285cedd0880e695296e6
Author: Justus Klausecker <justus@klausecker.de>
Date:   Thu,  7 Aug 2025 14:34:05 +0200

remove unnecessary discard

Diffstat:
Msrc/Sema.zig | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/Sema.zig b/src/Sema.zig @@ -12007,9 +12007,8 @@ fn zirSwitchBlock(sema: *Sema, block: *Block, inst: Zir.Inst.Index, operand_is_r // it to a prong with explicit items. // Although this is potentially the same as `inline else` it does not count // towards the backward branch quota because it's an implementation detail. - if (special_members_only) |special| gen: { + if (special_members_only != null) gen: { assert(cond_ty.isNonexhaustiveEnum(zcu)); - _ = special; var min_i: usize = math.maxInt(usize); var max_i: usize = 0;