mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
incremental: handle loss of main struct instruction
My changes to how incremental compilation handles container types mean that, at least for now, it is possible for the ZIR `.main_struct_inst` of a source file to be lost (this happens if the number of top-level fields in a file changes for instance). I missed a few things which needed changing to account for this, which could lead to crashes with certain (trivial) changes---oops! Adds two new incremental test cases. They are currently disabled for wasm32-wasi-selfhosted because they both trigger a crash in the WASM backend.
This commit is contained in:
parent
01cc1a5867
commit
0978566db8
8 changed files with 265 additions and 39 deletions
Loading…
Add table
Add a link
Reference in a new issue