# AIR: add call_async_alloc instruction · gitcafe/zig

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

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

Visibility: public

Requested revision: a6eb83bd1b7739156ab01e3fc55588f67d924daa

Requested commit: a6eb83bd1b7739156ab01e3fc55588f67d924daa

Commit: a6eb83bd1b7739156ab01e3fc55588f67d924daa

Tree: c89741b3b0e9fdfa1433031eab13e611634b5e1f

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AIR: add call_async_alloc instruction

This is for async calls that also act as an alloca. This helps avoid
unnecessarily complicated machinery for the simple case of
`var a = async b();`.

The `call_async` instruction has a frame pointer and returns void
always, which will be used for the other form: `a = async b();`.

```

## Parents

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

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