# stage2: save and restore parameters when resolving inline bodies · gitcafe/zig

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

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

Visibility: public

Requested revision: d5621504b0e2160fa44991fc4180165584d72819

Requested commit: d5621504b0e2160fa44991fc4180165584d72819

Commit: d5621504b0e2160fa44991fc4180165584d72819

Tree: 0982bfb7e952a6a9b87c063a5431002c6d8345e1

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
stage2: save and restore parameters when resolving inline bodies

This caused zirParam instructions of parent blocks to be present in
inline analyzed blocks, and so function prototypes declared in the
inline blocks would also gain and add to the parameters in the
parent block.

Only block and block_inline are affected in this commit, as prototypes
and declarations are always generated in block_inline. This might need
to be resolved in a more general way at some point.

```

## Parents

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

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