# stage2: fix \`@call\` when used in a comptime or nosuspend block · gitcafe/zig

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

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

Visibility: public

Requested revision: cd04b49041200b36c5af23ac3700cbfa82f037ca

Requested commit: cd04b49041200b36c5af23ac3700cbfa82f037ca

Commit: cd04b49041200b36c5af23ac3700cbfa82f037ca

Tree: 415600adaea3553fd3bf3020958812672f6aa97c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix `@call` when used in a comptime or nosuspend block

`@call` allows specifying the modifier explicitly, however it can still
appear in a context that overrides the modifier. This commit adds flags
to the BuiltinCall ZIR encoding. Since we have unused bits I also threw
in the ensure_result_used mechanism.

I also deleted a behavior test that was checking for bound function
behavior where I think stage2 behavior is correct and stage1 behavior
is incorrect.

```

## Parents

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

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