aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/wasm.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-01-02 22:01:51 -0800
committerGitHub <noreply@github.com>2021-01-02 22:01:51 -0800
commitd8f3f14532c4b5d65377efaef015c3855137dccf (patch)
treed0927df77323d64bff52501b50ef8543a077d4d8 /src/codegen/wasm.zig
parent3d151fbfc8db71f87ee84dd33c49910584708a04 (diff)
parent654832253a7857e78aab85e28ed09fb16b632dd2 (diff)
downloadzig-d8f3f14532c4b5d65377efaef015c3855137dccf.tar.gz
zig-d8f3f14532c4b5d65377efaef015c3855137dccf.zip
Merge pull request #7647 from ziglang/stage2-comptime-fn-call
stage2: comptime function calls and inline function calls
Diffstat (limited to 'src/codegen/wasm.zig')
-rw-r--r--src/codegen/wasm.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/wasm.zig b/src/codegen/wasm.zig
index c7ad59f5d1..036243dcca 100644
--- a/src/codegen/wasm.zig
+++ b/src/codegen/wasm.zig
@@ -63,7 +63,7 @@ pub fn genCode(buf: *ArrayList(u8), decl: *Decl) !void {
// TODO: check for and handle death of instructions
const tv = decl.typed_value.most_recent.typed_value;
const mod_fn = tv.val.castTag(.function).?.data;
- for (mod_fn.analysis.success.instructions) |inst| try genInst(buf, decl, inst);
+ for (mod_fn.body.instructions) |inst| try genInst(buf, decl, inst);
// Write 'end' opcode
try writer.writeByte(0x0B);