aboutsummaryrefslogtreecommitdiff
path: root/src/Value.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-04-28 21:44:57 +0100
committermlugg <mlugg@mlugg.co.uk>2024-09-01 18:30:31 +0100
commit5e12ca9fe3c77ce1d2a3ea1c22c4bcb6d9b2bb0c (patch)
treea4badc5eab3da4901e1c0c3f3239b07628fc339f /src/Value.zig
parent5fb4a7df38deb705f77088d7788f0acc09da613d (diff)
downloadzig-5e12ca9fe3c77ce1d2a3ea1c22c4bcb6d9b2bb0c.tar.gz
zig-5e12ca9fe3c77ce1d2a3ea1c22c4bcb6d9b2bb0c.zip
compiler: implement labeled switch/continue
Diffstat (limited to 'src/Value.zig')
-rw-r--r--src/Value.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Value.zig b/src/Value.zig
index e29e033884..575a84f103 100644
--- a/src/Value.zig
+++ b/src/Value.zig
@@ -292,6 +292,7 @@ pub fn getUnsignedIntInner(
.none => 0,
else => |payload| Value.fromInterned(payload).getUnsignedIntInner(strat, zcu, tid),
},
+ .enum_tag => |enum_tag| return Value.fromInterned(enum_tag.int).getUnsignedIntInner(strat, zcu, tid),
else => null,
},
};