diff options
author | Thomas Lively <tlively@google.com> | 2023-11-15 01:40:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-15 01:40:23 +0100 |
commit | 9846aaba1e4c4071c496000f4fa9ead3d1d107a5 (patch) | |
tree | 2689942956e4d52f3f09e1c78ee3ac19b3984218 /src/parser/parsers.h | |
parent | 77facb13f716742eb008eb73325efc0410d286d2 (diff) | |
download | binaryen-9846aaba1e4c4071c496000f4fa9ead3d1d107a5.tar.gz binaryen-9846aaba1e4c4071c496000f4fa9ead3d1d107a5.tar.bz2 binaryen-9846aaba1e4c4071c496000f4fa9ead3d1d107a5.zip |
[Parser] Parse ref.func (#6097)
Diffstat (limited to 'src/parser/parsers.h')
-rw-r--r-- | src/parser/parsers.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser/parsers.h b/src/parser/parsers.h index 44c4f959e..eb93fa717 100644 --- a/src/parser/parsers.h +++ b/src/parser/parsers.h @@ -1218,7 +1218,9 @@ template<typename Ctx> Result<> makeRefIsNull(Ctx& ctx, Index pos) { } template<typename Ctx> Result<> makeRefFunc(Ctx& ctx, Index pos) { - return ctx.in.err("unimplemented instruction"); + auto func = funcidx(ctx); + CHECK_ERR(func); + return ctx.makeRefFunc(pos, *func); } template<typename Ctx> Result<> makeRefEq(Ctx& ctx, Index pos) { |