diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-02-06 22:19:25 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-06 22:19:25 +0000 |
| commit | 43e52ec5c5a2267791cb2aaaf37f3f84dbe29d25 (patch) | |
| tree | f161e86b9ae7f9c2b764345782db302373eee908 /src/InternPool.zig | |
| parent | b0ed602d5d9358128471588f00a073f2545809fa (diff) | |
| parent | 5d935e1137ade5450e504ce9bc6bbf32301b0dfd (diff) | |
| download | zig-43e52ec5c5a2267791cb2aaaf37f3f84dbe29d25.tar.gz zig-43e52ec5c5a2267791cb2aaaf37f3f84dbe29d25.zip | |
Merge pull request #22777 from mlugg/some-bugs
Fix a bunch of frontend bugs
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index 60d24223ce..8f99c9d810 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -4011,7 +4011,7 @@ pub const LoadedStructType = struct { pub fn haveFieldTypes(s: LoadedStructType, ip: *const InternPool) bool { const types = s.field_types.get(ip); - return types.len == 0 or types[0] != .none; + return types.len == 0 or types[types.len - 1] != .none; } pub fn haveFieldInits(s: LoadedStructType, ip: *const InternPool) bool { |
