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 {
228228 @fromBackingInt(@intCast(try bc.readFixed(u3, 3)));
229229 try operands.append(record_arena.allocator(), @backingInt(encoding));
230230 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)),
232232 .array, .char6, .blob => {},
233233 _ => return error.UnsuportedAbbrevEncoding,
234234 }
lib/std/zig/llvm/bitcode_writer.zig+3-3
......@@ -38,7 +38,7 @@ pub fn BitcodeWriter(comptime types: []const type) type {
3838 };
3939 }
4040
41 pub fn deinit(self: BcWriter) void {
41 pub fn deinit(self: *BcWriter) void {
4242 self.buffer.deinit(self.allocator);
4343 }
4444
......@@ -145,7 +145,7 @@ pub fn BitcodeWriter(comptime types: []const type) type {
145145
146146 pub fn writeBlob(self: *BcWriter, blob: []const u8) Error!void {
147147 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);
149149 self.alignTo32() catch unreachable;
150150
151151 const slice = self.buffer.addManyAsSliceAssumeCapacity(blob_word_size / 4);
......@@ -157,7 +157,7 @@ pub fn BitcodeWriter(comptime types: []const type) type {
157157 pub fn alignTo32(self: *BcWriter) Error!void {
158158 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));
161161 self.bit_buffer = 0;
162162 self.bit_count = 0;
163163 }