aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-07-20 12:55:03 -0700
committerGitHub <noreply@github.com>2023-07-20 12:55:03 -0700
commit3f15010abe5c5efaed16799fcb94c9f84117bdde (patch)
treef1892ab71f40a4473c35783ac88d86e4290dc0e5 /src/Sema.zig
parent3bada8e3ce9ba72f57c6fbed100c76fd40ba0d15 (diff)
parent4d31d4d875f32ed49c56151ca053a614b3ae343c (diff)
downloadzig-3f15010abe5c5efaed16799fcb94c9f84117bdde.tar.gz
zig-3f15010abe5c5efaed16799fcb94c9f84117bdde.zip
Merge pull request #16430 from jacobly0/llvm-builder
llvm: begin the journey of independence from llvm
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index 3f8b936e0b..08d5f02a17 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -3899,7 +3899,7 @@ fn zirResolveInferredAlloc(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Com
try mod.declareDeclDependency(sema.owner_decl_index, decl_index);
const decl = mod.declPtr(decl_index);
- if (iac.is_const) try decl.intern(mod);
+ if (iac.is_const) _ = try decl.internValue(mod);
const final_elem_ty = decl.ty;
const final_ptr_ty = try mod.ptrType(.{
.child = final_elem_ty.toIntern(),
@@ -33577,7 +33577,7 @@ fn semaBackingIntType(mod: *Module, struct_obj: *Module.Struct) CompileError!voi
try wip_captures.finalize();
for (comptime_mutable_decls.items) |ct_decl_index| {
const ct_decl = mod.declPtr(ct_decl_index);
- try ct_decl.intern(mod);
+ _ = try ct_decl.internValue(mod);
}
} else {
if (fields_bit_sum > std.math.maxInt(u16)) {
@@ -34645,7 +34645,7 @@ fn semaStructFields(mod: *Module, struct_obj: *Module.Struct) CompileError!void
try wip_captures.finalize();
for (comptime_mutable_decls.items) |ct_decl_index| {
const ct_decl = mod.declPtr(ct_decl_index);
- try ct_decl.intern(mod);
+ _ = try ct_decl.internValue(mod);
}
struct_obj.have_field_inits = true;
@@ -34744,7 +34744,7 @@ fn semaUnionFields(mod: *Module, union_obj: *Module.Union) CompileError!void {
try wip_captures.finalize();
for (comptime_mutable_decls.items) |ct_decl_index| {
const ct_decl = mod.declPtr(ct_decl_index);
- try ct_decl.intern(mod);
+ _ = try ct_decl.internValue(mod);
}
try union_obj.fields.ensureTotalCapacity(mod.tmp_hack_arena.allocator(), fields_len);