diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2024-08-26 23:53:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-26 23:53:01 +0100 |
| commit | 492cc2ef8d1d21d96e25541c22ab885a31c62770 (patch) | |
| tree | 68a56acd898e308845054123f0cf6816761d3fa1 /src/InternPool.zig | |
| parent | 849c31a6cc3d1e554f97c2ccf7aaa886070cfadd (diff) | |
| parent | 61e8a6c0082778e9d7a120fb5b9c30ebf85d586b (diff) | |
| download | zig-492cc2ef8d1d21d96e25541c22ab885a31c62770.tar.gz zig-492cc2ef8d1d21d96e25541c22ab885a31c62770.zip | |
Merge pull request #21208 from Rexicon226/pt-begone
Cleanup type resolution and finish `zcu` rename
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index 83732a29f6..7adfae31f4 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -3483,7 +3483,7 @@ pub const LoadedStructType = struct { return s.field_aligns.get(ip)[i]; } - pub fn fieldInit(s: LoadedStructType, ip: *InternPool, i: usize) Index { + pub fn fieldInit(s: LoadedStructType, ip: *const InternPool, i: usize) Index { if (s.field_inits.len == 0) return .none; assert(s.haveFieldInits(ip)); return s.field_inits.get(ip)[i]; @@ -11066,7 +11066,7 @@ pub fn destroyNamespace( local.mutate.namespaces.free_list = @intFromEnum(namespace_index); } -pub fn filePtr(ip: *InternPool, file_index: FileIndex) *Zcu.File { +pub fn filePtr(ip: *const InternPool, file_index: FileIndex) *Zcu.File { const file_index_unwrapped = file_index.unwrap(ip); const files = ip.getLocalShared(file_index_unwrapped.tid).files.acquire(); return files.view().items(.file)[file_index_unwrapped.index]; |
