aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-05-02 01:59:38 +0100
committerMatthew Lugg <mlugg@mlugg.co.uk>2024-05-04 22:03:56 +0100
commitdb890dbae72bc31e50d4ec641f2afce683df772d (patch)
treeb1b3f0b3f9f921cfd1ac365446becb235151a970 /lib/std
parent5bbb2f966a4d29c7003767255515b7c69a2f1178 (diff)
downloadzig-db890dbae72bc31e50d4ec641f2afce683df772d.tar.gz
zig-db890dbae72bc31e50d4ec641f2afce683df772d.zip
InternPool: eliminate `var_args_param_type`
This was a "fake" type used to handle C varargs parameters, much like generic poison. In fact, it is treated identically to generic poison in all cases other than one (the final coercion of a call argument), which is trivially special-cased. Thus, it makes sense to remove this special tag and instead use `generic_poison_type` in its place. This fixes several bugs in Sema related to missing handling of this tag. Resolves: #19781
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/zig/Zir.zig3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/std/zig/Zir.zig b/lib/std/zig/Zir.zig
index 64e8a1c805..9453790fcf 100644
--- a/lib/std/zig/Zir.zig
+++ b/lib/std/zig/Zir.zig
@@ -2194,9 +2194,6 @@ pub const Inst = struct {
empty_struct,
generic_poison,
- /// This tag is here to match Air and InternPool, however it is unused
- /// for ZIR purposes.
- var_args_param_type = std.math.maxInt(u32) - 1,
/// This Ref does not correspond to any ZIR instruction or constant
/// value and may instead be used as a sentinel to indicate null.
none = std.math.maxInt(u32),