diff options
| author | Robin Voetter <robin@voetter.nl> | 2023-04-10 18:34:30 +0200 |
|---|---|---|
| committer | Robin Voetter <robin@voetter.nl> | 2023-05-11 20:31:50 +0200 |
| commit | dfecf89d06dc2caad41ff54b05240506ea2c47e8 (patch) | |
| tree | 46cb08a073d4e346188fc2c323d7b3dede446144 /src/codegen/c.zig | |
| parent | 5d896a6cc6b7127dd4db0bd386ebe33da82d7824 (diff) | |
| download | zig-dfecf89d06dc2caad41ff54b05240506ea2c47e8.tar.gz zig-dfecf89d06dc2caad41ff54b05240506ea2c47e8.zip | |
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.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions
