diff options
Diffstat (limited to 'src/passes/Unsubtyping.cpp')
-rw-r--r-- | src/passes/Unsubtyping.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/Unsubtyping.cpp b/src/passes/Unsubtyping.cpp index 3e88a7f91..87da111f0 100644 --- a/src/passes/Unsubtyping.cpp +++ b/src/passes/Unsubtyping.cpp @@ -201,7 +201,7 @@ struct Unsubtyping void analyzePublicTypes(Module& wasm) { // We cannot change supertypes for anything public. for (auto type : ModuleUtils::getPublicHeapTypes(wasm)) { - if (auto super = type.getSuperType()) { + if (auto super = type.getDeclaredSuperType()) { noteSubtype(type, *super); } } @@ -276,7 +276,7 @@ struct Unsubtyping Unsubtyping& parent; Rewriter(Unsubtyping& parent, Module& wasm) : GlobalTypeRewriter(wasm), parent(parent) {} - std::optional<HeapType> getSuperType(HeapType type) override { + std::optional<HeapType> getDeclaredSuperType(HeapType type) override { if (auto it = parent.supertypes.find(type); it != parent.supertypes.end() && !it->second.isBasic()) { return it->second; |