summaryrefslogtreecommitdiff
path: root/src/wasm
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2022-03-22 11:02:34 -0700
committerGitHub <noreply@github.com>2022-03-22 11:02:34 -0700
commit1ffea5761c4a9ddbdb2b1e6dc35d5346f2956b9c (patch)
treebc541f84a01c4c96feedde2ba503cd4df41f332c /src/wasm
parent343a796102cbdc373c98dc77f322de0fade48ebc (diff)
downloadbinaryen-1ffea5761c4a9ddbdb2b1e6dc35d5346f2956b9c.tar.gz
binaryen-1ffea5761c4a9ddbdb2b1e6dc35d5346f2956b9c.tar.bz2
binaryen-1ffea5761c4a9ddbdb2b1e6dc35d5346f2956b9c.zip
Remove nearly unused {Heap}Type::isCompound (#4541)
Diffstat (limited to 'src/wasm')
-rw-r--r--src/wasm/wasm-type.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp
index d7ba224c8..ea4e43efe 100644
--- a/src/wasm/wasm-type.cpp
+++ b/src/wasm/wasm-type.cpp
@@ -530,12 +530,12 @@ namespace wasm {
namespace {
TypeInfo* getTypeInfo(Type type) {
- assert(type.isCompound());
+ assert(!type.isBasic());
return (TypeInfo*)type.getID();
}
HeapTypeInfo* getHeapTypeInfo(HeapType ht) {
- assert(ht.isCompound());
+ assert(!ht.isBasic());
return (HeapTypeInfo*)ht.getID();
}