aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_debug.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-07-15 12:21:42 +0100
committergingerBill <bill@gingerbill.org>2024-07-15 12:21:42 +0100
commit549311fac98ce447e8ab18d365841dc4f0671abf (patch)
tree5419414785383d324d3b19219a7a7cc0f6480d82 /src/llvm_backend_debug.cpp
parentc5decd3eaecf393e1bf216b4d864fc9cfc5db0c2 (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.cpp1
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;