# stage2: fix two return types to be Ref not Index · gitcafe/zig

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

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

Visibility: public

Requested revision: 668148549a822c7fa680cf08999dd845bde765aa

Requested commit: 668148549a822c7fa680cf08999dd845bde765aa

Commit: 668148549a822c7fa680cf08999dd845bde765aa

Tree: d7d08e3c4d78e2f74b1ce7525a1990d52e2e7c8f

Author: Isaac Freund

Committer: Isaac Freund

## Message

```
stage2: fix two return types to be Ref not Index

We currently have no type safety between zir.Inst.Ref, zir.Inst.Index,
and plain u32s.

```

## Parents

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

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