| ... | @@ -6972,8 +6972,7 @@ pub const Constant = enum(u32) { | ... | @@ -6972,8 +6972,7 @@ pub const Constant = enum(u32) { |
| 6972 | .vector, | 6972 | .vector, |
| 6973 | => builder.constantExtraData(Aggregate, item.data).type, | 6973 | => builder.constantExtraData(Aggregate, item.data).type, |
| 6974 | .splat => builder.constantExtraData(Splat, item.data).type, | 6974 | .splat => builder.constantExtraData(Splat, item.data).type, |
| 6975 | .string, | 6975 | .string => builder.arrayTypeAssumeCapacity( |
| 6976 | => builder.arrayTypeAssumeCapacity( | | |
| 6977 | @as(String, @enumFromInt(item.data)).slice(builder).?.len, | 6976 | @as(String, @enumFromInt(item.data)).slice(builder).?.len, |
| 6978 | .i8, | 6977 | .i8, |
| 6979 | ), | 6978 | ), |
| ... | @@ -13594,8 +13593,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co | ... | @@ -13594,8 +13593,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co |
| 13594 | try bitcode.writeBits(c, Constants.Aggregate.ops[1].array_fixed); | 13593 | try bitcode.writeBits(c, Constants.Aggregate.ops[1].array_fixed); |
| 13595 | } | 13594 | } |
| 13596 | }, | 13595 | }, |
| 13597 | .string, | 13596 | .string => { |
| 13598 | => { | | |
| 13599 | const str: String = @enumFromInt(data); | 13597 | const str: String = @enumFromInt(data); |
| 13600 | if (str == .none) { | 13598 | if (str == .none) { |
| 13601 | try constants_block.writeAbbrev(Constants.Null{}); | 13599 | try constants_block.writeAbbrev(Constants.Null{}); |