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 ae8d5fa4c..2eb051251 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -134,6 +134,7 @@ public:
return ret;
}
Const* makeConst(Literal value) {
+ assert(isConcreteWasmType(value.type));
auto* ret = wasm.allocator.alloc<Const>();
ret->value = value;
ret->type = value.type;