diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index 22fa0e642..918e6a4ab 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -232,14 +232,15 @@ public: auto* ret = allocator.alloc<LocalSet>(); ret->index = index; ret->value = value; + ret->makeSet(); ret->finalize(); return ret; } - LocalSet* makeLocalTee(Index index, Expression* value) { + LocalSet* makeLocalTee(Index index, Expression* value, Type type) { auto* ret = allocator.alloc<LocalSet>(); ret->index = index; ret->value = value; - ret->setTee(true); + ret->makeTee(type); return ret; } GlobalGet* makeGlobalGet(Name name, Type type) { |