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, 3 insertions, 0 deletions
diff --git a/src/ir/cost.h b/src/ir/cost.h
index 372c597a5..afc091ffb 100644
--- a/src/ir/cost.h
+++ b/src/ir/cost.h
@@ -678,6 +678,9 @@ struct CostAnalyzer : public OverriddenVisitor<CostAnalyzer, CostType> {
CostType visitStringMeasure(StringMeasure* curr) {
return 6 + visit(curr->ref);
}
+ CostType visitStringEncode(StringEncode* curr) {
+ return 6 + visit(curr->ref) + visit(curr->ptr);
+ }
private:
CostType nullCheckCost(Expression* ref) {