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 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) { |