# stage2: implement the new "try" ZIR/AIR instruction · gitcafe/zig

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

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

Visibility: public

Requested revision: ef885a78d606693c73641159731274cc57f6ea98

Requested commit: ef885a78d606693c73641159731274cc57f6ea98

Commit: ef885a78d606693c73641159731274cc57f6ea98

Tree: 6c962ecd3098f25ca6e5da87cd018fb90c6f1520

Author: Andrew Kelley

Committer: Jakub Konka

## Message

```
stage2: implement the new "try" ZIR/AIR instruction

Implements semantic analysis for the new try/try_inline ZIR
instruction. Adds the new try/try_ptr AIR instructions and implements
them for the LLVM backend.

Fixes not calling rvalue() for tryExpr in AstGen.

This is part of an effort to implement #11772.

```

## Parents

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

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