summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index 2b8fa479a..9508acbfc 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -64,13 +64,7 @@ public:
return values[0];
}
- Type getType() {
- std::vector<Type> types;
- for (auto& val : values) {
- types.push_back(val.type);
- }
- return Type(types);
- }
+ Type getType() { return values.getType(); }
Expression* getConstExpression(Module& module) {
assert(values.size() > 0);
@@ -1573,7 +1567,7 @@ private:
locals[i] = arguments[i];
} else {
assert(function->isVar(i));
- locals[i] = Literal::makeZero(function->getLocalType(i));
+ locals[i] = Literal::makeSingleZero(function->getLocalType(i));
}
}
}