summaryrefslogtreecommitdiff
path: root/src/ir/module-utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/module-utils.cpp')
-rw-r--r--src/ir/module-utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ir/module-utils.cpp b/src/ir/module-utils.cpp
index 2b2f51323..ed147053b 100644
--- a/src/ir/module-utils.cpp
+++ b/src/ir/module-utils.cpp
@@ -506,6 +506,11 @@ InsertOrderedSet<HeapType> getPublicTypeSet(Module& wasm) {
WASM_UNREACHABLE("unexpected export kind");
}
+ // Ignorable public types are public.
+ for (auto type : getIgnorablePublicTypes()) {
+ notePublic(type);
+ }
+
// Find all the other public types reachable from directly publicized types.
std::vector<HeapType> workList(publicTypes.begin(), publicTypes.end());
while (workList.size()) {