summaryrefslogtreecommitdiff
path: root/src/tools/spec-wrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/spec-wrapper.h')
-rw-r--r--src/tools/spec-wrapper.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/spec-wrapper.h b/src/tools/spec-wrapper.h
index 516ce17a9..d481f0fa8 100644
--- a/src/tools/spec-wrapper.h
+++ b/src/tools/spec-wrapper.h
@@ -25,8 +25,9 @@ static std::string generateSpecWrapper(Module& wasm) {
std::string ret;
for (auto& exp : wasm.exports) {
auto* func = wasm.getFunctionOrNull(exp->value);
- if (!func)
+ if (!func) {
continue; // something exported other than a function
+ }
ret += std::string("(invoke \"hangLimitInitializer\") (invoke \"") +
exp->name.str + "\" ";
for (Type param : func->params) {