summaryrefslogtreecommitdiff
path: root/src/validator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/validator.cc')
-rw-r--r--src/validator.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/validator.cc b/src/validator.cc
index ef238292..e1d099a4 100644
--- a/src/validator.cc
+++ b/src/validator.cc
@@ -588,11 +588,16 @@ Result Validator::CheckModule() {
switch (f->type->kind()) {
case TypeEntryKind::Func: {
FuncType* func_type = cast<FuncType>(f->type.get());
- result_ |=
- validator_.OnType(field.loc, func_type->sig.param_types.size(),
- func_type->sig.param_types.data(),
- func_type->sig.result_types.size(),
- func_type->sig.result_types.data());
+ result_ |= validator_.OnFuncType(field.loc,
+ func_type->sig.param_types.size(),
+ func_type->sig.param_types.data(),
+ func_type->sig.result_types.size(),
+ func_type->sig.result_types.data());
+ break;
+ }
+
+ case TypeEntryKind::Struct: {
+ // TODO
break;
}
}