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 5c6792a82..e41bd769c 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -478,6 +478,7 @@ public:
ret->type = value.type;
return ret;
}
+ template<typename T> Const* makeConst(T x) { return makeConst(Literal(x)); }
Unary* makeUnary(UnaryOp op, Expression* value) {
auto* ret = allocator.alloc<Unary>();
ret->op = op;