summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s2wasm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index 9897f7384..0c56e4bfb 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -217,6 +217,7 @@ private:
mustMatch(name.str);
mustMatch(":");
auto func = allocator.alloc<Function>();
+ func->name = name;
std::map<Name, WasmType> localTypes;
// params and result
while (1) {