LLVM Builder: Fix emission of enum debug enumerator info bitcode

This commit is contained in:
antlilja 2024-02-29 16:02:16 +01:00 committed by Andrew Kelley
parent 791e28bb68
commit 147beec7da
3 changed files with 2 additions and 4 deletions

View File

@ -2013,7 +2013,7 @@ pub const Object = struct {
enumerators[i] = try o.builder.debugEnumerator(
try o.builder.metadataString(ip.stringToSlice(field_name_ip)),
int_ty.isUnsignedInt(mod),
int_info.signedness == .unsigned,
int_info.bits,
bigint,
);

View File

@ -14367,7 +14367,6 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
try metadata_block.writeAbbrevAdapted(MetadataBlock.Enumerator{
.flags = .{
.unsigned = unsigned,
.bigint = false,
},
.bit_width = extra.bit_width,
.name = extra.name,
@ -14379,7 +14378,6 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
const flags: MetadataBlock.Enumerator.Flags = .{
.unsigned = unsigned,
.bigint = true,
};
const FlagsInt = @typeInfo(MetadataBlock.Enumerator.Flags).Struct.backing_integer.?;

View File

@ -896,7 +896,7 @@ pub const MetadataBlock = struct {
pub const Flags = packed struct(u3) {
distinct: bool = false,
unsigned: bool,
bigint: bool,
bigint: bool = true,
};
pub const ops = [_]AbbrevOp{