summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-s-parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-s-parser.cpp')
-rw-r--r--src/wasm/wasm-s-parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp
index 8d1583059..a5f5f88f2 100644
--- a/src/wasm/wasm-s-parser.cpp
+++ b/src/wasm/wasm-s-parser.cpp
@@ -3354,8 +3354,8 @@ ElementSegment* SExpressionWasmBuilder::parseElemFinish(
} else {
for (; i < s.size(); i++) {
auto func = getFunctionName(*s[i]);
- segment->data.push_back(Builder(wasm).makeRefFunc(
- func, Type(HeapType(functionSignatures[func]), Nullable)));
+ segment->data.push_back(
+ Builder(wasm).makeRefFunc(func, functionSignatures[func]));
}
}
return wasm.addElementSegment(std::move(segment));