| ... | @@ -7525,10 +7525,12 @@ fn analyzeCall( | ... | @@ -7525,10 +7525,12 @@ fn analyzeCall( |
| 7525 | | 7525 | |
| 7526 | var is_generic_call = func_ty_info.is_generic; | 7526 | var is_generic_call = func_ty_info.is_generic; |
| 7527 | var is_comptime_call = block.is_comptime or modifier == .compile_time; | 7527 | var is_comptime_call = block.is_comptime or modifier == .compile_time; |
| | 7528 | var is_inline_call = is_comptime_call or modifier == .always_inline or func_ty_info.cc == .Inline; |
| 7528 | var comptime_reason: ?*const Block.ComptimeReason = null; | 7529 | var comptime_reason: ?*const Block.ComptimeReason = null; |
| 7529 | if (!is_comptime_call) { | 7530 | if (!is_inline_call and !is_comptime_call) { |
| 7530 | if (sema.typeRequiresComptime(Type.fromInterned(func_ty_info.return_type))) |ct| { | 7531 | if (sema.typeRequiresComptime(Type.fromInterned(func_ty_info.return_type))) |ct| { |
| 7531 | is_comptime_call = ct; | 7532 | is_comptime_call = ct; |
| | 7533 | is_inline_call = ct; |
| 7532 | if (ct) { | 7534 | if (ct) { |
| 7533 | comptime_reason = &.{ .comptime_ret_ty = .{ | 7535 | comptime_reason = &.{ .comptime_ret_ty = .{ |
| 7534 | .block = block, | 7536 | .block = block, |
| ... | @@ -7542,8 +7544,6 @@ fn analyzeCall( | ... | @@ -7542,8 +7544,6 @@ fn analyzeCall( |
| 7542 | else => |e| return e, | 7544 | else => |e| return e, |
| 7543 | } | 7545 | } |
| 7544 | } | 7546 | } |
| 7545 | var is_inline_call = is_comptime_call or modifier == .always_inline or | | |
| 7546 | func_ty_info.cc == .Inline; | | |
| 7547 | | 7547 | |
| 7548 | if (sema.func_is_naked and !is_inline_call and !is_comptime_call) { | 7548 | if (sema.func_is_naked and !is_inline_call and !is_comptime_call) { |
| 7549 | const msg = msg: { | 7549 | const msg = msg: { |