mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 20:13:21 +00:00
LLVM Builder: Fix emission of enum debug enumerator info bitcode
This commit is contained in:
parent
791e28bb68
commit
147beec7da
@ -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,
|
||||
);
|
||||
|
||||
@ -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.?;
|
||||
|
||||
@ -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{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user