# stage2: fix bug in genArg · gitcafe/zig

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

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

Visibility: public

Requested revision: a7da90071e23f22158ef508a263cb3a4054554dd

Requested commit: a7da90071e23f22158ef508a263cb3a4054554dd

Commit: a7da90071e23f22158ef508a263cb3a4054554dd

Tree: 1d9b9d1d521333aad22050ed6d014bf13cb8af3a

Author: joachimschmidt557

Committer: Andrew Kelley

## Message

```
stage2: fix bug in genArg

When an argument is unused in the function body, still increment
arg_index so we still select the correct arguments in the args slice.

```

## Parents

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

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