diff options
Diffstat (limited to 'src/ir/cost.h')
-rw-r--r-- | src/ir/cost.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir/cost.h b/src/ir/cost.h index afc091ffb..2dcf7c456 100644 --- a/src/ir/cost.h +++ b/src/ir/cost.h @@ -681,6 +681,9 @@ struct CostAnalyzer : public OverriddenVisitor<CostAnalyzer, CostType> { CostType visitStringEncode(StringEncode* curr) { return 6 + visit(curr->ref) + visit(curr->ptr); } + CostType visitStringConcat(StringConcat* curr) { + return 10 + visit(curr->left) + visit(curr->right); + } private: CostType nullCheckCost(Expression* ref) { |