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 8ab4cfec9..3c200a431 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -82,6 +82,7 @@ public:
Block* makeBlock(Name name, Expression* first = nullptr) {
auto* ret = makeBlock(first);
ret->name = name;
+ ret->finalize();
return ret;
}
Block* makeBlock(const std::vector<Expression*>& items) {