# AstGen: make the index variable of \`inline for\` a \`alloc_comptime\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 4cb5fed10ba2233a3b19c33b56585eb73da8b001

Requested commit: 4cb5fed10ba2233a3b19c33b56585eb73da8b001

Commit: 4cb5fed10ba2233a3b19c33b56585eb73da8b001

Tree: b0f52f720e66ed1ea5ef7af2b418ec0b822a15c6

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: make the index variable of `inline for` a `alloc_comptime`

Before it was being emitted as an `alloc` which caused inline for loops
to not work correctly.

```

## Parents

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

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