diff options
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r-- | src/wasm/wasm.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index 86eed184f..749a44339 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -1184,6 +1184,14 @@ void StringNew::finalize() { void StringConst::finalize() { type = Type(HeapType::string, NonNullable); } +void StringMeasure::finalize() { + if (ref->type == Type::unreachable) { + type = Type::unreachable; + } else { + type = Type::i32; + } +} + size_t Function::getNumParams() { return getParams().size(); } size_t Function::getNumVars() { return vars.size(); } |