diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-15 12:21:42 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-15 12:21:42 +0100 |
| commit | 549311fac98ce447e8ab18d365841dc4f0671abf (patch) | |
| tree | 5419414785383d324d3b19219a7a7cc0f6480d82 /src/llvm_backend_debug.cpp | |
| parent | c5decd3eaecf393e1bf216b4d864fc9cfc5db0c2 (diff) | |
Fix global variables being "missing" with `-use-separate-modules`
Diffstat (limited to 'src/llvm_backend_debug.cpp')
| -rw-r--r-- | src/llvm_backend_debug.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/llvm_backend_debug.cpp b/src/llvm_backend_debug.cpp index f1ace5f06..c896f889d 100644 --- a/src/llvm_backend_debug.cpp +++ b/src/llvm_backend_debug.cpp @@ -1187,6 +1187,7 @@ gb_internal void add_debug_info_for_global_constant_from_entity(lbGenerator *gen if (USE_SEPARATE_MODULES) { m = lb_module_of_entity(gen, e); } + GB_ASSERT(m != nullptr); if (is_type_integer(e->type)) { ExactValue const &value = e->Constant.value; |