# explicit "\_ptr" variants of ZIR try instruction · gitcafe/zig

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

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

Visibility: public

Requested revision: 6d3586e0edf3278862a3a969debaa842014f8110

Requested commit: 6d3586e0edf3278862a3a969debaa842014f8110

Commit: 6d3586e0edf3278862a3a969debaa842014f8110

Tree: bcfd155cf39aebb455c36df4dbdae43a3d499baa

Author: Andrew Kelley

Committer: Jakub Konka

## Message

```
explicit "_ptr" variants of ZIR try instruction

 * Introduce "_ptr" variants of ZIR try instruction to disallow constructs
   such as `try` on a pointer value instead of an error union value.
 * Disable the "_inline" variants of the ZIR try instruction for now because
   we are out of ZIR tags. I will free up some space in an independent commit.
 * AstGen: fix tryExpr calling rvalue() on ResultLoc.ref

```

## Parents

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

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