# ir: Avoid invalidating the decl_table iterator · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/6b74fd2e12b117e90197db5f4fa1ea51aa246248)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 6b74fd2e12b117e90197db5f4fa1ea51aa246248

Requested commit: 6b74fd2e12b117e90197db5f4fa1ea51aa246248

Commit: 6b74fd2e12b117e90197db5f4fa1ea51aa246248

Tree: 495e7cb300694b5fdeb01065bc0c1b3b82e83118

Author: LemonBoy

Committer: LemonBoy

## Message

```
ir: Avoid invalidating the decl_table iterator

Collect the declarations to resolve first and run resolve_top_level_decl
on them later.

Closes #4310

```

## Parents

- [59a243ce24e858260d289c5c40f3430223b7d98b](https://git.cafe/gitcafe/zig/commit/59a243ce24e858260d289c5c40f3430223b7d98b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/6b74fd2e12b117e90197db5f4fa1ea51aa246248?format=markdown)
