From 37a4d9391f9585759d4c0d274393a3ddb3e2e76b Mon Sep 17 00:00:00 2001 From: antlilja Date: Sun, 17 Mar 2024 16:23:14 +0100 Subject: [PATCH] LLVM: Fix reaching unreachable code when emitting fast call --- src/codegen/llvm/Builder.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/codegen/llvm/Builder.zig b/src/codegen/llvm/Builder.zig index c885261a24..d98afb3389 100644 --- a/src/codegen/llvm/Builder.zig +++ b/src/codegen/llvm/Builder.zig @@ -14721,10 +14721,10 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co try function_block.writeAbbrevAdapted(FunctionBlock.CallFast{ .attributes = extra.data.attributes, .call_type = switch (kind) { - .call => .{ .call_conv = call_conv }, - .@"tail call" => .{ .tail = true, .call_conv = call_conv }, - .@"musttail call" => .{ .must_tail = true, .call_conv = call_conv }, - .@"notail call" => .{ .no_tail = true, .call_conv = call_conv }, + .@"call fast" => .{ .call_conv = call_conv }, + .@"tail call fast" => .{ .tail = true, .call_conv = call_conv }, + .@"musttail call fast" => .{ .must_tail = true, .call_conv = call_conv }, + .@"notail call fast" => .{ .no_tail = true, .call_conv = call_conv }, else => unreachable, }, .fast_math = .{},