diff options
Diffstat (limited to 'src/ir/module-utils.h')
-rw-r--r-- | src/ir/module-utils.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ir/module-utils.h b/src/ir/module-utils.h index 13fa76fff..69c454410 100644 --- a/src/ir/module-utils.h +++ b/src/ir/module-utils.h @@ -597,15 +597,15 @@ inline void collectHeapTypes(Module& wasm, counts.note(child); } } - HeapType super; - if (ht.getSuperType(super)) { - if (!counts.count(super)) { - newTypes.insert(super); + + if (auto super = ht.getSuperType()) { + if (!counts.count(*super)) { + newTypes.insert(*super); // We should unconditionally count supertypes, but while the type system // is in flux, skip counting them to keep the type orderings in nominal // test outputs more similar to the orderings in the equirecursive // outputs. FIXME - counts.note(super); + counts.note(*super); } } } |