# spirv: fix OpFunctionCall parameters interleaving with insts · gitcafe/zig

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

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

Visibility: public

Requested revision: dfecf89d06dc2caad41ff54b05240506ea2c47e8

Requested commit: dfecf89d06dc2caad41ff54b05240506ea2c47e8

Commit: dfecf89d06dc2caad41ff54b05240506ea2c47e8

Tree: 46cb08a073d4e346188fc2c323d7b3dede446144

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: fix OpFunctionCall parameters interleaving with insts

resolve() is now able to emit instructions. If usage of this function is
interleaved with calls to emitRaw() and writeOperand(), then an
instruction may get inserted between operands, causing an invalid module.
The solution here is to just perform a temporary allocation.

```

## Parents

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

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