| ... | ... | @@ -7281,6 +7281,7 @@ fn analyzeCall( |
| 7281 | 7281 | .needed_comptime_reason = "function being called at comptime must be comptime-known", |
| 7282 | 7282 | .block_comptime_reason = comptime_reason, |
| 7283 | 7283 | }); |
| 7284 | const prev_fn_index = sema.func_index; |
| 7284 | 7285 | const module_fn_index = switch (mod.intern_pool.indexToKey(func_val.toIntern())) { |
| 7285 | 7286 | .extern_func => return sema.fail(block, call_src, "{s} call of extern function", .{ |
| 7286 | 7287 | @as([]const u8, if (is_comptime_call) "comptime" else "inline"), |
| ... | ... | @@ -7478,7 +7479,7 @@ fn analyzeCall( |
| 7478 | 7479 | new_fn_info.return_type = sema.fn_ret_ty.toIntern(); |
| 7479 | 7480 | const new_func_resolved_ty = try mod.funcType(new_fn_info); |
| 7480 | 7481 | if (!is_comptime_call and !block.is_typeof) { |
| 7481 | | try sema.emitDbgInline(block, sema.func_index, module_fn_index, new_func_resolved_ty, .dbg_inline_begin); |
| 7482 | try sema.emitDbgInline(block, prev_fn_index, module_fn_index, new_func_resolved_ty, .dbg_inline_begin); |
| 7482 | 7483 | |
| 7483 | 7484 | const zir_tags = sema.code.instructions.items(.tag); |
| 7484 | 7485 | for (fn_info.param_body) |param| switch (zir_tags[param]) { |
| ... | ... | @@ -7519,7 +7520,7 @@ fn analyzeCall( |
| 7519 | 7520 | try sema.emitDbgInline( |
| 7520 | 7521 | block, |
| 7521 | 7522 | module_fn_index, |
| 7522 | | sema.func_index, |
| 7523 | prev_fn_index, |
| 7523 | 7524 | mod.funcOwnerDeclPtr(sema.func_index).ty, |
| 7524 | 7525 | .dbg_inline_end, |
| 7525 | 7526 | ); |