aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_debug.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-09-18 15:10:29 +0100
committergingerBill <bill@gingerbill.org>2021-09-18 15:10:29 +0100
commit71f2289c20c55ced92225fea97df66b1e53f3c37 (patch)
tree978d666b054b9d7b616ccb302e3034829dce1a5e /src/llvm_backend_debug.cpp
parent05ac2002e0296c3acccca1d8cffaafb002e43120 (diff)
Fix #1174
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 1a540cd33..83b6ac4ae 100644
--- a/src/llvm_backend_debug.cpp
+++ b/src/llvm_backend_debug.cpp
@@ -714,6 +714,7 @@ void lb_debug_complete_types(lbModule *m) {
unsigned field_line = 0;
LLVMDIFlags field_flags = LLVMDIFlagZero;
+ GB_ASSERT(bt->Struct.offsets != nullptr);
u64 offset_in_bits = 8*cast(u64)bt->Struct.offsets[j];
elements[element_offset+j] = LLVMDIBuilderCreateMemberType(