diff --git a/src/ir/module-utils.cpp b/src/ir/module-utils.cpp index 5abbbecc01d..45068abe3ec 100644 --- a/src/ir/module-utils.cpp +++ b/src/ir/module-utils.cpp @@ -391,8 +391,7 @@ struct TypeInfos { bool contains(HeapType type) { return info.count(type); } }; -struct CodeScanner - : PostWalker> { +struct CodeScanner : PostWalker { TypeInfos& info; TypeInclusion inclusion; @@ -401,70 +400,71 @@ struct CodeScanner setModule(&wasm); } - void visitExpression(Expression* curr) { - if (auto* call = curr->dynCast()) { - info.note(call->heapType); - } else if (auto* call = curr->dynCast()) { - info.note(call->target->type); - } else if (curr->is()) { - info.note(curr->type); - } else if (curr->is