summaryrefslogtreecommitdiff
path: root/src/ir/cost.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/cost.h')
-rw-r--r--src/ir/cost.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir/cost.h b/src/ir/cost.h
index ea3e32909..056d51447 100644
--- a/src/ir/cost.h
+++ b/src/ir/cost.h
@@ -754,7 +754,8 @@ struct CostAnalyzer : public Visitor<CostAnalyzer, Index> {
}
Index visitDrop(Drop* curr) { return visit(curr->value); }
Index visitReturn(Return* curr) { return maybeVisit(curr->value); }
- Index visitHost(Host* curr) { return 100; }
+ Index visitMemorySize(MemorySize* curr) { return 1; }
+ Index visitMemoryGrow(MemoryGrow* curr) { return 100; }
Index visitRefNull(RefNull* curr) { return 1; }
Index visitRefIsNull(RefIsNull* curr) { return 1; }
Index visitRefFunc(RefFunc* curr) { return 1; }