mirror of
https://github.com/ziglang/zig.git
synced 2026-02-17 14:59:14 +00:00
LLVM: Fix reaching unreachable code when emitting fast call
This commit is contained in:
parent
294f51814f
commit
37a4d9391f
@ -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 = .{},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user