diff options
Diffstat (limited to 'src/wast-parser.cc')
-rw-r--r-- | src/wast-parser.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wast-parser.cc b/src/wast-parser.cc index f07ee8b1..80b47858 100644 --- a/src/wast-parser.cc +++ b/src/wast-parser.cc @@ -1361,6 +1361,7 @@ Result WastParser::ParseFuncModuleField(Module* module) { } else { auto field = MakeUnique<FuncModuleField>(loc, name); Func& func = field->func; + func.loc = GetLocation(); CHECK_RESULT(ParseTypeUseOpt(&func.decl)); CHECK_RESULT(ParseFuncSignature(&func.decl.sig, &func.bindings)); TypeVector local_types; |