# spirv: make locals generic pointers · gitcafe/zig

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

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

Visibility: public

Requested revision: caf8461af8df9a34abc5985042d98b8188575cd0

Requested commit: caf8461af8df9a34abc5985042d98b8188575cd0

Commit: caf8461af8df9a34abc5985042d98b8188575cd0

Tree: 09db4533e38137d70c64c5aaccc62443916038e7

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: make locals generic pointers

Taking the address of a local variable should result in a generic
pointer - too much code breaks if we do not do this. We cannot
lower locals into the generic storage class directly though, so
instead, lower the variables into the Function storage class
implicitly, and convert the pointer to a generic pointer.

Also Correct OpInboundsAccessChain generation (we only need
the one index).

```

## Parents

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

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