| ... | @@ -562,10 +562,9 @@ pub const File = struct { | ... | @@ -562,10 +562,9 @@ pub const File = struct { |
| 562 | | 562 | |
| 563 | /// May be called before or after updateDeclExports for any given Decl. | 563 | /// May be called before or after updateDeclExports for any given Decl. |
| 564 | pub fn updateFunc(base: *File, module: *Module, func_index: Module.Fn.Index, air: Air, liveness: Liveness) UpdateDeclError!void { | 564 | pub fn updateFunc(base: *File, module: *Module, func_index: Module.Fn.Index, air: Air, liveness: Liveness) UpdateDeclError!void { |
| 565 | const func = module.funcPtr(func_index); | | |
| 566 | if (build_options.only_c) { | 565 | if (build_options.only_c) { |
| 567 | assert(base.tag == .c); | 566 | assert(base.tag == .c); |
| 568 | return @fieldParentPtr(C, "base", base).updateFunc(module, func, air, liveness); | 567 | return @fieldParentPtr(C, "base", base).updateFunc(module, func_index, air, liveness); |
| 569 | } | 568 | } |
| 570 | switch (base.tag) { | 569 | switch (base.tag) { |
| 571 | // zig fmt: off | 570 | // zig fmt: off |