summaryrefslogtreecommitdiff
path: root/src/wasm-builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r--src/wasm-builder.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h
index 4591c9c0d..cca97a869 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -192,6 +192,7 @@ public:
auto* ret = allocator.alloc<SetGlobal>();
ret->name = name;
ret->value = value;
+ ret->finalize();
return ret;
}
Load* makeLoad(unsigned bytes, bool signed_, uint32_t offset, unsigned align, Expression *ptr, WasmType type) {