summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r--src/s2wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index faa31ae92..31632c9dc 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -628,7 +628,7 @@ class S2WasmBuilder {
std::string sig = getSig(decl.get());
decl->name = "FUNCSIG$" + sig;
- FunctionType *ty = wasm->checkFunctionType(decl->name);
+ FunctionType *ty = wasm->getFunctionTypeOrNull(decl->name);
Name name = fixEmEHSjLjNames(rawName, sig);
if (!ty) {
// The wasm module takes ownership of the FunctionType if we insert it.