diff options
| author | gingerBill <bill@gingerbill.org> | 2025-02-22 18:12:43 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-02-22 18:12:43 +0000 |
| commit | ebda946d61d4b7447348afeccd16a6e5786fa91b (patch) | |
| tree | 200efeaf6f76c36bd942bf6a24e5ea3ba67792b7 /src/llvm_backend.cpp | |
| parent | de755f95ecd5574f291d03b9488b5c4b8f07042c (diff) | |
Move temporary array out of `CheckerInfo`
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 4ebcf7578..d8e1af062 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -3185,8 +3185,11 @@ gb_internal bool lb_generate_code(lbGenerator *gen) { isize count = 0; isize offsets_extra = 0; - for (auto const &tt : m->info->type_info_types) { + for (auto const &tt : m->info->type_info_types_hash_map) { Type *t = tt.type; + if (t == nullptr) { + continue; + } isize index = lb_type_info_index(m->info, t, false); if (index < 0) { continue; |