diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-10-15 18:56:58 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-10-16 15:54:17 +0200 |
| commit | 6fcd72355cac1495c213da20a6cf4f6f30bd2a65 (patch) | |
| tree | 227d979fb5516aadc3225b692666123a1998d3fa /src/stage1/codegen.cpp | |
| parent | e62bb1d6892e0ca4afe921bee2eb8baa778b51b5 (diff) | |
| download | zig-6fcd72355cac1495c213da20a6cf4f6f30bd2a65.tar.gz zig-6fcd72355cac1495c213da20a6cf4f6f30bd2a65.zip | |
wasm: correctly get the type of a local for free
When determining the type of a local (read: register), we would
previously subtract the stack locals also. However, this locals
are also within the same `locals` list, meaning the type of the
local we were retrieving was off by 2. This could create a validation
error when we re-use a local of a different type.
Diffstat (limited to 'src/stage1/codegen.cpp')
0 files changed, 0 insertions, 0 deletions
