summaryrefslogtreecommitdiff
path: root/src/ir/table-utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/table-utils.cpp')
-rw-r--r--src/ir/table-utils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir/table-utils.cpp b/src/ir/table-utils.cpp
index 0d47f155b..fb9285319 100644
--- a/src/ir/table-utils.cpp
+++ b/src/ir/table-utils.cpp
@@ -76,7 +76,8 @@ bool usesExpressions(ElementSegment* curr, Module* module) {
// declare a type that is a subtype of that, so it must use the post-MVP form
// of using expressions.
bool hasTableOfSpecializedType =
- curr->table.is() && module->getTable(curr->table)->type != Type::funcref;
+ curr->table.is() &&
+ module->getTable(curr->table)->type != Type(HeapType::func, Nullable);
return !allElementsRefFunc || hasTableOfSpecializedType;
}