diff options
author | Ben Smith <binji@chromium.org> | 2020-07-25 12:52:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-25 12:52:49 -0700 |
commit | 2402dedc1d95b75ba6a005c9ba686cb77f316c7f (patch) | |
tree | b60e0d00329ec4ab9778a62eb535fd359e9f650e /third_party | |
parent | f414678326964001e4009daf58274006900d2f14 (diff) | |
download | wabt-2402dedc1d95b75ba6a005c9ba686cb77f316c7f.tar.gz wabt-2402dedc1d95b75ba6a005c9ba686cb77f316c7f.tar.bz2 wabt-2402dedc1d95b75ba6a005c9ba686cb77f316c7f.zip |
Fix assert when function has struct type (#1498)
Function types and struct types share an index space, but a function can
only be defined using a function type.
Since `Module::GetFuncType` already returns `nullptr` for an OOB index,
it makes sense to return `nullptr` for an invalid type too.
Diffstat (limited to 'third_party')
0 files changed, 0 insertions, 0 deletions