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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir/cost.h b/src/ir/cost.h
index 1b0862bf6..2b918bf38 100644
--- a/src/ir/cost.h
+++ b/src/ir/cost.h
@@ -674,6 +674,7 @@ struct CostAnalyzer : public OverriddenVisitor<CostAnalyzer, CostType> {
CostType visitStringNew(StringNew* curr) {
return 4 + visit(curr->ptr) + visit(curr->length);
}
+ CostType visitStringConst(StringConst* curr) { return 4; }
private:
CostType nullCheckCost(Expression* ref) {