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 2b918bf38..372c597a5 100644
--- a/src/ir/cost.h
+++ b/src/ir/cost.h
@@ -675,6 +675,9 @@ struct CostAnalyzer : public OverriddenVisitor<CostAnalyzer, CostType> {
return 4 + visit(curr->ptr) + visit(curr->length);
}
CostType visitStringConst(StringConst* curr) { return 4; }
+ CostType visitStringMeasure(StringMeasure* curr) {
+ return 6 + visit(curr->ref);
+ }
private:
CostType nullCheckCost(Expression* ref) {