summaryrefslogtreecommitdiff
path: root/src/ir/abstract.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/abstract.h')
-rw-r--r--src/ir/abstract.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ir/abstract.h b/src/ir/abstract.h
index 384f8b555..76215d07f 100644
--- a/src/ir/abstract.h
+++ b/src/ir/abstract.h
@@ -80,8 +80,10 @@ inline UnaryOp getUnary(Type type, Op op) {
case v128: {
WASM_UNREACHABLE("v128 not implemented yet");
}
- case anyref: // there's no unary instructions for anyref
- case exnref: // there's no unary instructions for exnref
+ case funcref:
+ case anyref:
+ case nullref:
+ case exnref:
case none:
case unreachable: {
return InvalidUnary;
@@ -211,8 +213,10 @@ inline BinaryOp getBinary(Type type, Op op) {
case v128: {
WASM_UNREACHABLE("v128 not implemented yet");
}
- case anyref: // there's no binary instructions for anyref
- case exnref: // there's no binary instructions for exnref
+ case funcref:
+ case anyref:
+ case nullref:
+ case exnref:
case none:
case unreachable: {
return InvalidBinary;