summaryrefslogtreecommitdiff
path: root/src/wasm-type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r--src/wasm-type.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h
index 29e5114b7..05deeef15 100644
--- a/src/wasm-type.h
+++ b/src/wasm-type.h
@@ -35,7 +35,7 @@
// prepare for this change, the following macro marks affected code locations.
#define TODO_SINGLE_COMPOUND(type) \
assert(!type.isTuple() && "Unexpected tuple type"); \
- assert(!type.isCompound() && "TODO: handle compound types");
+ assert(type.isBasic() && "TODO: handle compound types");
namespace wasm {
@@ -162,7 +162,6 @@ public:
// │ Rtt ║ │ x │ x │ x │ │
// └─────────────╨───┴───┴───┴───┴───────┘
constexpr bool isBasic() const { return id <= _last_basic_type; }
- constexpr bool isCompound() const { return id > _last_basic_type; }
constexpr bool isConcrete() const { return id >= i32; }
constexpr bool isInteger() const { return id == i32 || id == i64; }
constexpr bool isFloat() const { return id == f32 || id == f64; }
@@ -366,7 +365,6 @@ public:
HeapType(Array array);
constexpr bool isBasic() const { return id <= _last_basic_type; }
- constexpr bool isCompound() const { return id > _last_basic_type; }
bool isFunction() const;
bool isData() const;
bool isSignature() const;