diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-06-23 16:28:33 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-23 21:59:42 -0700 |
| commit | 5288929ffd91c1fdc2237bb2574e0e0afbbc60eb (patch) | |
| tree | dd510e2915d4bc234f745e1a2467bcaef31da3d3 /src/Module.zig | |
| parent | 5fc5e4fbe04ccbe5ea37b07c1153a7c5bd2b4346 (diff) | |
| download | zig-5288929ffd91c1fdc2237bb2574e0e0afbbc60eb.tar.gz zig-5288929ffd91c1fdc2237bb2574e0e0afbbc60eb.zip | |
sema.addConstant: remove type parameter
Now that InternPool migration is finished, all values have types. So
only the value parameter is required.
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Module.zig b/src/Module.zig index 82718a7d8b..70b9c9bdbb 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -5503,7 +5503,7 @@ pub fn analyzeFnBody(mod: *Module, func_index: Fn.Index, arena: Allocator) SemaE else break :t arg_tv.ty; - const arg = try sema.addConstant(arg_tv.ty, arg_val); + const arg = try sema.addConstant(arg_val); sema.inst_map.putAssumeCapacityNoClobber(inst, arg); total_param_index += 1; continue; @@ -5517,7 +5517,7 @@ pub fn analyzeFnBody(mod: *Module, func_index: Fn.Index, arena: Allocator) SemaE else => |e| return e, }; if (opt_opv) |opv| { - const arg = try sema.addConstant(param_ty, opv); + const arg = try sema.addConstant(opv); sema.inst_map.putAssumeCapacityNoClobber(inst, arg); total_param_index += 1; runtime_param_index += 1; |
