authorgravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-03-17 16:23:14+01:00
committergravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-03-17 16:23:14+01:00
log37a4d9391f9585759d4c0d274393a3ddb3e2e76b
treee89eca9ed788d25126b313d9959fd842c3a794ad
parent294f51814f491ae4a09348d9e7221ae3e550c16f

LLVM: Fix reaching unreachable code when emitting fast call


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

src/codegen/llvm/Builder.zig+4-4
...@@ -14721,10 +14721,10 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co...@@ -14721,10 +14721,10 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
14721 try function_block.writeAbbrevAdapted(FunctionBlock.CallFast{14721 try function_block.writeAbbrevAdapted(FunctionBlock.CallFast{
14722 .attributes = extra.data.attributes,14722 .attributes = extra.data.attributes,
14723 .call_type = switch (kind) {14723 .call_type = switch (kind) {
14724 .call => .{ .call_conv = call_conv },14724 .@"call fast" => .{ .call_conv = call_conv },
14725 .@"tail call" => .{ .tail = true, .call_conv = call_conv },14725 .@"tail call fast" => .{ .tail = true, .call_conv = call_conv },
14726 .@"musttail call" => .{ .must_tail = true, .call_conv = call_conv },14726 .@"musttail call fast" => .{ .must_tail = true, .call_conv = call_conv },
14727 .@"notail call" => .{ .no_tail = true, .call_conv = call_conv },14727 .@"notail call fast" => .{ .no_tail = true, .call_conv = call_conv },
14728 else => unreachable,14728 else => unreachable,
14729 },14729 },
14730 .fast_math = .{},14730 .fast_math = .{},