llvm: never_tail implies never_inline, so set noinline in this case too.

This commit is contained in:
Alex Rønne Petersen 2025-03-06 18:41:45 +01:00
parent 7415739e36
commit 166766d63d
No known key found for this signature in database

View File

@ -5191,8 +5191,8 @@ pub const FuncGen = struct {
}
switch (modifier) {
.auto, .never_tail, .always_tail => {},
.never_inline => try attributes.addFnAttr(.@"noinline", &o.builder),
.auto, .always_tail => {},
.never_tail, .never_inline => try attributes.addFnAttr(.@"noinline", &o.builder),
.async_kw, .no_async, .always_inline, .compile_time => unreachable,
}