diff options
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r-- | src/wasm-interpreter.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index 44173d395..1d07af46a 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -1306,15 +1306,20 @@ public: NOTE_ENTER("RefNull"); return Literal::makeNull(curr->type); } - Flow visitRefIsNull(RefIsNull* curr) { - NOTE_ENTER("RefIsNull"); + Flow visitRefIs(RefIs* curr) { + NOTE_ENTER("RefIs"); Flow flow = visit(curr->value); if (flow.breaking()) { return flow; } const auto& value = flow.getSingleValue(); NOTE_EVAL1(value); - return Literal(value.isNull()); + switch (curr->op) { + case RefIsNull: + return Literal(value.isNull()); + default: + WASM_UNREACHABLE("unimplemented ref.is_*"); + } } Flow visitRefFunc(RefFunc* curr) { NOTE_ENTER("RefFunc"); |