Compare commits

..

1 Commits

Author SHA1 Message Date
74b9a2b0ff Compile the compiler
All checks were successful
CI / ci (RelWithDebInfo, ubuntu-latest) (pull_request) Successful in 5m18s
CI / ci (MinSizeRel, ubuntu-latest) (pull_request) Successful in 5m21s
CI / ci (Release, ubuntu-latest) (pull_request) Successful in 5m4s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 18m44s
2025-06-20 09:43:05 -06:00

View File

@ -1843,9 +1843,7 @@ get_bit_size = fn (type: &Type) u64
}, },
.array => .array =>
{ {
>element_bit_size = get_byte_size(type.content.array.element_type) * 8; return get_bit_size(type.content.array.element_type);
>result = element_bit_size * type.content.array.element_count;
return result;
}, },
.enum => .enum =>
{ {
@ -8260,18 +8258,8 @@ resolve_type_in_place_debug = fn (module: &Module, type: &Type) void
.integer => .integer =>
{ {
>bit_count = type.content.integer.bit_count; >bit_count = type.content.integer.bit_count;
>dwarf_encoding: LLVMDwarfTypeEncoding = undefined; >dwarf_encoding: LLVMDwarfTypeEncoding = #select(type.content.integer.signed, .signed, .unsigned);
dwarf_encoding = #select(bit_count == 1, .boolean, dwarf_encoding);
if (bit_count == 1)
{
dwarf_encoding = .boolean;
bit_count = 8;
}
else
{
dwarf_encoding = #select(type.content.integer.signed, .signed, .unsigned);
}
>flags: LLVMDIFlags = zero; >flags: LLVMDIFlags = zero;
result = LLVMDIBuilderCreateBasicType(module.llvm.di_builder, type.name.pointer, type.name.length, bit_count, dwarf_encoding, flags); result = LLVMDIBuilderCreateBasicType(module.llvm.di_builder, type.name.pointer, type.name.length, bit_count, dwarf_encoding, flags);
}, },