diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-02 17:48:09 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-02 17:48:09 +0100 |
| commit | 81fe50d623c1edb2df1334a2ef906bfc219bd18b (patch) | |
| tree | 054d4a0bbd7465fc242006bf944eab0ff8e9df3f /src | |
| parent | b9b9bd86122c476dee1d1b2a389f97921069d726 (diff) | |
Add sizes to assert message
Diffstat (limited to 'src')
| -rw-r--r-- | src/llvm_backend_general.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/llvm_backend_general.cpp b/src/llvm_backend_general.cpp index da06659f1..f5ff583a9 100644 --- a/src/llvm_backend_general.cpp +++ b/src/llvm_backend_general.cpp @@ -1736,7 +1736,10 @@ LLVMTypeRef lb_type_internal(lbModule *m, Type *type) { LLVMTypeRef struct_type = LLVMStructTypeInContext(ctx, fields.data, cast(unsigned)fields.count, type->Struct.is_packed); map_set(&m->struct_field_remapping, hash_pointer(struct_type), field_remapping); map_set(&m->struct_field_remapping, hash_pointer(type), field_remapping); - GB_ASSERT_MSG(lb_sizeof(struct_type) == full_type_size, "%s vs %s", LLVMPrintTypeToString(struct_type), type_to_string(type)); + GB_ASSERT_MSG(lb_sizeof(struct_type) == full_type_size, + "(%lld) %s vs (%lld) %s", + cast(long long)lb_sizeof(struct_type), LLVMPrintTypeToString(struct_type), + cast(long long)full_type_size, type_to_string(type)); return struct_type; } break; |