0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Isaac Freund 0c601965ab
stage2: make zir.Inst.Ref a non-exhaustive enum
This provides us greatly increased type safety and prevents the common
mistake of using a zir.Inst.Ref where a zir.Inst.Index was expected or
vice-versa. It also increases the ergonomics of using the typed values
which can be directly referenced with a Ref over the previous zir.Const
approach.

The main pain point is casting between a []Ref and []u32, which could be
alleviated in the future with a new std.mem function.
History 2021-03-24 19:11:44 +01:00
..
include update to latest clang C headers 2020-12-04 15:39:16 -07:00
libc macos: add missing x86_64 libc headers 2021-03-12 18:05:50 +01:00
libcxx update install files for LLVM 11rc1 2020-08-04 17:52:26 -07:00
libcxxabi update install files for LLVM 11rc1 2020-08-04 17:52:26 -07:00
libunwind libunwind: fix compile errors and warnings for 32-bit arm 2020-12-24 13:31:41 -07:00
std stage2: make zir.Inst.Ref a non-exhaustive enum 2021-03-24 19:11:44 +01:00
tsan stage2: fix Cache deadlock and build more of TSAN 2020-12-24 01:18:48 -07:00