Skip to content

Commit 166766d

Browse files
committed
llvm: never_tail implies never_inline, so set noinline in this case too.
1 parent 7415739 commit 166766d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegen/llvm.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -5191,8 +5191,8 @@ pub const FuncGen = struct {
51915191
}
51925192

51935193
switch (modifier) {
5194-
.auto, .never_tail, .always_tail => {},
5195-
.never_inline => try attributes.addFnAttr(.@"noinline", &o.builder),
5194+
.auto, .always_tail => {},
5195+
.never_tail, .never_inline => try attributes.addFnAttr(.@"noinline", &o.builder),
51965196
.async_kw, .no_async, .always_inline, .compile_time => unreachable,
51975197
}
51985198

0 commit comments

Comments
 (0)