mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
Add sizes to assert message
This commit is contained in:
@@ -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);
|
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(struct_type), field_remapping);
|
||||||
map_set(&m->struct_field_remapping, hash_pointer(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;
|
return struct_type;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user