| ... | ... | @@ -562,10 +562,9 @@ pub const File = struct { |
| 562 | 562 | |
| 563 | 563 | /// May be called before or after updateDeclExports for any given Decl. |
| 564 | 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 | 565 | if (build_options.only_c) { |
| 567 | 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 | 569 | switch (base.tag) { |
| 571 | 570 | // zig fmt: off |