diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-11 22:12:36 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-11 22:12:36 -0700 |
| commit | 1ab1a96f87279375e656bba35280a85b62973255 (patch) | |
| tree | 456a1c00ce806827214678f13ef721dfe704a970 /src/codegen | |
| parent | d7567c06fd8bc1777f98e33abfe3070f698782ec (diff) | |
| download | zig-1ab1a96f87279375e656bba35280a85b62973255.tar.gz zig-1ab1a96f87279375e656bba35280a85b62973255.zip | |
stage2: improve Decl lifetime management
* Compilation: iteration over the deletion_set only tries to delete the
first one, relying on Decl destroy to remove itself from the deletion
set.
* link: `freeDecl` now has to handle the possibility of freeing a Decl
that was never called with `allocateDeclIndexes`.
* `deleteDecl` recursively iterates over a Decl's Namespace sub-Decl
objects and calls `deleteDecl` on them.
- Prevents Decl objects from being destroyed when they are still in
`deletion_set`.
* Sema: fix cleanup of anonymous Decl objects when an error occurs
during semantic analysis.
* tests: update test cases for fully qualified names
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
