diff options
| author | Luuk de Gram <luuk@degram.dev> | 2023-05-27 15:11:53 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2023-05-31 18:04:32 +0200 |
| commit | 969f9211622b3f2d296a6f51449605d65b66bb31 (patch) | |
| tree | 0921d62ea4fd4fe0d2c97eded2064d965c5688c3 /src/codegen.zig | |
| parent | ffa89d3b8370377b56be594650c0ea73f225c926 (diff) | |
| download | zig-969f9211622b3f2d296a6f51449605d65b66bb31.tar.gz zig-969f9211622b3f2d296a6f51449605d65b66bb31.zip | |
wasm: `ptr_elem_val` use pointer type for local
When storing the address after calculating the element's address,
ensure it's stored in a local with the correct type. Previously it
would incorrectly use the element's type, which could be a float for
example and therefore generate invalid WebAssembly code.
This change also introduces a more robust `store` function.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
