zig

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

commit a226008e32af8700d1aa05bcaef50cb3cf1205d0 (tree)
parent f9183edf08214d3ff014cfe26a5f218385ef5ccc
Author: Matthew Lugg <mlugg@mlugg.co.uk>
Date:   Sun,  8 Feb 2026 14:58:03 +0000

Sema: minor fix

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

diff --git a/src/Sema.zig b/src/Sema.zig @@ -15913,12 +15913,12 @@ fn zirBitSizeOf(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!A .undefined, .null, .@"opaque", - => return sema.fail(block, operand_src, "no size available for type '{f}'", .{operand_ty.fmt(pt)}), - .type, .enum_literal, .comptime_float, .comptime_int, + => return sema.fail(block, operand_src, "no size available for type '{f}'", .{operand_ty.fmt(pt)}), + .void, => return .zero,