diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-01-26 13:17:38 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2023-01-26 14:29:14 +0100 |
| commit | e1b9800ffa74a637e2b0a6356249c2c37228ec01 (patch) | |
| tree | 9a239b77750b0216e8e5fe24ea0c930ebf5943ca /src/Module.zig | |
| parent | fb8d754a4bf823b66bcf3fa281c469af8be6f923 (diff) | |
| download | zig-e1b9800ffa74a637e2b0a6356249c2c37228ec01.tar.gz zig-e1b9800ffa74a637e2b0a6356249c2c37228ec01.zip | |
elf: migrate to new non-allocateDeclIndexes API
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig index 2d85399baf..4e1f65aff4 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -5324,7 +5324,7 @@ pub fn deleteUnusedDecl(mod: *Module, decl_index: Decl.Index) void { // Until then, we did call `allocateDeclIndexes` on this anonymous Decl and so we // must call `freeDecl` in the linker backend now. switch (mod.comp.bin_file.tag) { - .macho, .c => {}, // this linker backend has already migrated to the new API + .elf, .macho, .c => {}, // this linker backend has already migrated to the new API else => if (decl.has_tv) { if (decl.ty.isFnOrHasRuntimeBits()) { mod.comp.bin_file.freeDecl(decl_index); |
