diff options
Diffstat (limited to 'src/ir/cost.h')
-rw-r--r-- | src/ir/cost.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir/cost.h b/src/ir/cost.h index 29fcb8dd4..12797b0b5 100644 --- a/src/ir/cost.h +++ b/src/ir/cost.h @@ -540,6 +540,7 @@ struct CostAnalyzer : public OverriddenVisitor<CostAnalyzer, CostType> { CostType visitRefEq(RefEq* curr) { return 1 + visit(curr->left) + visit(curr->right); } + CostType visitTableGet(TableGet* curr) { return 1 + visit(curr->index); } CostType visitTry(Try* curr) { // We assume no exception will be thrown in most cases return visit(curr->body); |