aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorJohn Schmidt <john.schmidt.h@gmail.com>2024-02-19 13:46:52 +0100
committerAndrew Kelley <andrew@ziglang.org>2024-02-26 16:51:37 -0800
commit00ff123b1eb237f72f918ffd413c8d9c8936c46d (patch)
tree7a42500140004999e5d8c28aa06fbf531a8de804 /lib/std
parent8bd94759bf48c3247d4de14806ff2f510cb36591 (diff)
downloadzig-00ff123b1eb237f72f918ffd413c8d9c8936c46d.tar.gz
zig-00ff123b1eb237f72f918ffd413c8d9c8936c46d.zip
Sema: fix compile error for switching on undefined union
Before this fix, passing an undefined union value to `Sema.switchCond` returned an undefined value of the union type, not the tag type, since `Value.unionTag` forwards undefined values unchanged. This leads us into the `.Union` branch in `Sema.zirSwitchBlock` which is unreachable, now we take the `.Enum` branch instead.
Diffstat (limited to 'lib/std')
0 files changed, 0 insertions, 0 deletions