diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-02-07 01:44:48 +0100 |
|---|---|---|
| committer | Matthew Lugg <mlugg@mlugg.co.uk> | 2024-02-07 07:12:32 +0000 |
| commit | b3aed4e2c8b4d48b8b12f606f56e5aae7ec4693b (patch) | |
| tree | 5f387c409a0801d371edfaf9396b1934b5fbaa5d /src/link/Plan9.zig | |
| parent | 9211938e6ee8d84ce7a70b9193ed08f7e0b5aa95 (diff) | |
| download | zig-b3aed4e2c8b4d48b8b12f606f56e5aae7ec4693b.tar.gz zig-b3aed4e2c8b4d48b8b12f606f56e5aae7ec4693b.zip | |
link: report function failures in `FuncAnalysis`
This unblocks backend errors after #18814.
Diffstat (limited to 'src/link/Plan9.zig')
| -rw-r--r-- | src/link/Plan9.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Plan9.zig b/src/link/Plan9.zig index 8b4287dcfd..2e937a3904 100644 --- a/src/link/Plan9.zig +++ b/src/link/Plan9.zig @@ -444,7 +444,7 @@ pub fn updateFunc(self: *Plan9, mod: *Module, func_index: InternPool.Index, air: const code = switch (res) { .ok => try code_buffer.toOwnedSlice(), .fail => |em| { - decl.analysis = .codegen_failure; + func.analysis(&mod.intern_pool).state = .codegen_failure; try mod.failed_decls.put(mod.gpa, decl_index, em); return; }, |
