From 036fa5cb24609655094b7292b16277aca0db975d Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 2 Oct 2021 18:12:34 +0100 Subject: Correct ABI for windows with LLVM --- src/llvm_backend_general.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/llvm_backend_general.cpp') diff --git a/src/llvm_backend_general.cpp b/src/llvm_backend_general.cpp index f5ff583a9..094275429 100644 --- a/src/llvm_backend_general.cpp +++ b/src/llvm_backend_general.cpp @@ -1736,10 +1736,12 @@ 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); + #if 0 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)); + #endif return struct_type; } break; -- cgit v1.2.3