authorgravatar for der.teufel.mail@gmail.comKrzysztof Wolicki <der.teufel.mail@gmail.com> 2026-10-23 10:34:40+02:00
committergravatar for der.teufel.mail@gmail.comKrzysztof Wolicki <der.teufel.mail@gmail.com> 2026-10-23 10:34:40+02:00
logbc2c709e18b72b31b4f65ff6b9b14b9229da491e
tree4cad8cff84cf9daa709eeabc93e38325e89b905a
parentfdb4cdfff1efb93eda20bf8033c7b3fd4366e688

Fix missing argument changes


2 files changed, 4 insertions(+), 4 deletions(-)

lib/std/zig/llvm/BitcodeReader.zig+1-1
...@@ -228,7 +228,7 @@ fn nextRecord(bc: *BitcodeReader) !?Record {...@@ -228,7 +228,7 @@ fn nextRecord(bc: *BitcodeReader) !?Record {
228 @fromBackingInt(@intCast(try bc.readFixed(u3, 3)));228 @fromBackingInt(@intCast(try bc.readFixed(u3, 3)));
229 try operands.append(record_arena.allocator(), @backingInt(encoding));229 try operands.append(record_arena.allocator(), @backingInt(encoding));
230 switch (encoding) {230 switch (encoding) {
231 .fixed, .vbr => try operands.append(try bc.readVbr(u7, 5)),231 .fixed, .vbr => try operands.append(record_arena.allocator(), try bc.readVbr(u7, 5)),
232 .array, .char6, .blob => {},232 .array, .char6, .blob => {},
233 _ => return error.UnsuportedAbbrevEncoding,233 _ => return error.UnsuportedAbbrevEncoding,
234 }234 }
lib/std/zig/llvm/bitcode_writer.zig+3-3
...@@ -38,7 +38,7 @@ pub fn BitcodeWriter(comptime types: []const type) type {...@@ -38,7 +38,7 @@ pub fn BitcodeWriter(comptime types: []const type) type {
38 };38 };
39 }39 }
4040
41 pub fn deinit(self: BcWriter) void {41 pub fn deinit(self: *BcWriter) void {
42 self.buffer.deinit(self.allocator);42 self.buffer.deinit(self.allocator);
43 }43 }
4444
...@@ -145,7 +145,7 @@ pub fn BitcodeWriter(comptime types: []const type) type {...@@ -145,7 +145,7 @@ pub fn BitcodeWriter(comptime types: []const type) type {
145145
146 pub fn writeBlob(self: *BcWriter, blob: []const u8) Error!void {146 pub fn writeBlob(self: *BcWriter, blob: []const u8) Error!void {
147 const blob_word_size = std.mem.alignForward(usize, blob.len, 4);147 const blob_word_size = std.mem.alignForward(usize, blob.len, 4);
148 try self.buffer.ensureUnusedCapacity(blob_word_size + 1);148 try self.buffer.ensureUnusedCapacity(self.allocator, blob_word_size + 1);
149 self.alignTo32() catch unreachable;149 self.alignTo32() catch unreachable;
150150
151 const slice = self.buffer.addManyAsSliceAssumeCapacity(blob_word_size / 4);151 const slice = self.buffer.addManyAsSliceAssumeCapacity(blob_word_size / 4);
...@@ -157,7 +157,7 @@ pub fn BitcodeWriter(comptime types: []const type) type {...@@ -157,7 +157,7 @@ pub fn BitcodeWriter(comptime types: []const type) type {
157 pub fn alignTo32(self: *BcWriter) Error!void {157 pub fn alignTo32(self: *BcWriter) Error!void {
158 if (self.bit_count == 0) return;158 if (self.bit_count == 0) return;
159159
160 try self.buffer.append(std.mem.nativeToLittle(u32, self.bit_buffer));160 try self.buffer.append(self.allocator, std.mem.nativeToLittle(u32, self.bit_buffer));
161 self.bit_buffer = 0;161 self.bit_buffer = 0;
162 self.bit_count = 0;162 self.bit_count = 0;
163 }163 }