# spirv: air array_elem_val using hack · gitcafe/zig

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

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

Visibility: public

Requested revision: 5d844faf7c5c30555664b4161e5f9a903daaf562

Requested commit: 5d844faf7c5c30555664b4161e5f9a903daaf562

Commit: 5d844faf7c5c30555664b4161e5f9a903daaf562

Tree: 788856661b2789bafbd1049b863dd596cc611b72

Author: Robin Voetter

Committer: Andrew Kelley

## Message

```
spirv: air array_elem_val using hack

SPIR-V doesn't support true element indexing, so we probably
need to switch over to isByRef like in llvm for this to work
properly. Currently a temporary is used, which at least
seems to work.

```

## Parents

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

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