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.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ir/abstract.h b/src/ir/abstract.h
index 2653218b0..384f8b555 100644
--- a/src/ir/abstract.h
+++ b/src/ir/abstract.h
@@ -78,8 +78,7 @@ inline UnaryOp getUnary(Type type, Op op) {
break;
}
case v128: {
- assert(false && "v128 not implemented yet");
- WASM_UNREACHABLE();
+ WASM_UNREACHABLE("v128 not implemented yet");
}
case anyref: // there's no unary instructions for anyref
case exnref: // there's no unary instructions for exnref
@@ -88,7 +87,7 @@ inline UnaryOp getUnary(Type type, Op op) {
return InvalidUnary;
}
}
- WASM_UNREACHABLE();
+ WASM_UNREACHABLE("invalid type");
}
inline BinaryOp getBinary(Type type, Op op) {
@@ -210,8 +209,7 @@ inline BinaryOp getBinary(Type type, Op op) {
break;
}
case v128: {
- assert(false && "v128 not implemented yet");
- WASM_UNREACHABLE();
+ WASM_UNREACHABLE("v128 not implemented yet");
}
case anyref: // there's no binary instructions for anyref
case exnref: // there's no binary instructions for exnref
@@ -220,7 +218,7 @@ inline BinaryOp getBinary(Type type, Op op) {
return InvalidBinary;
}
}
- WASM_UNREACHABLE();
+ WASM_UNREACHABLE("invalid type");
}
} // namespace Abstract