aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.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.cpp
parent05ac2002e0296c3acccca1d8cffaafb002e43120 (diff)
Fix #1174
Diffstat (limited to 'src/llvm_backend.cpp')
-rw-r--r--src/llvm_backend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp
index 67160101d..9826c1f0e 100644
--- a/src/llvm_backend.cpp
+++ b/src/llvm_backend.cpp
@@ -322,6 +322,7 @@ lbValue lb_get_hasher_proc_for_type(lbModule *m, Type *type) {
auto args = array_make<lbValue>(permanent_allocator(), 2);
for_array(i, type->Struct.fields) {
+ GB_ASSERT(type->Struct.offsets != nullptr);
i64 offset = type->Struct.offsets[i];
Entity *field = type->Struct.fields[i];
lbValue field_hasher = lb_get_hasher_proc_for_type(m, field->type);