diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-28 13:38:33 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-28 13:38:33 -0700 |
| commit | d5100dc81555f0e8197d5f189b1432070e8d72dd (patch) | |
| tree | 96de992b22f7cfc4bcb672892c64fb2cdf621913 /src/arch/wasm/CodeGen.zig | |
| parent | 90bce11f62aa2f246b9bce5bc49069a3faf7ec9a (diff) | |
| download | zig-d5100dc81555f0e8197d5f189b1432070e8d72dd.tar.gz zig-d5100dc81555f0e8197d5f189b1432070e8d72dd.zip | |
stage2: fix frame_address AIR instruction
Various places were assuming different union tags. Now it is
consistently a no-op instruction, just like the similar
instruction ret_addr.
Diffstat (limited to 'src/arch/wasm/CodeGen.zig')
| -rw-r--r-- | src/arch/wasm/CodeGen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig index 69a70d0d53..4f19aeca6b 100644 --- a/src/arch/wasm/CodeGen.zig +++ b/src/arch/wasm/CodeGen.zig @@ -1683,6 +1683,7 @@ fn genInst(self: *Self, inst: Air.Inst.Index) !WValue { .assembly, .shl_sat, .ret_addr, + .frame_addr, .clz, .ctz, .popcount, @@ -1726,7 +1727,6 @@ fn genInst(self: *Self, inst: Air.Inst.Index) !WValue { .error_name, .errunion_payload_ptr_set, .field_parent_ptr, - .frame_address, // For these 4, probably best to wait until https://github.com/ziglang/zig/issues/10248 // is implemented in the frontend before implementing them here in the wasm backend. |
