diff options
Diffstat (limited to 'src/ir/properties.h')
-rw-r--r-- | src/ir/properties.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir/properties.h b/src/ir/properties.h index 07898169f..4f7fb96ca 100644 --- a/src/ir/properties.h +++ b/src/ir/properties.h @@ -417,7 +417,8 @@ bool isGenerative(Expression* curr, FeatureSet features); inline bool isValidInConstantExpression(Expression* expr, FeatureSet features) { if (isSingleConstantExpression(expr) || expr->is<GlobalGet>() || expr->is<RttCanon>() || expr->is<RttSub>() || expr->is<StructNew>() || - expr->is<ArrayNew>() || expr->is<ArrayInit>() || expr->is<I31New>()) { + expr->is<ArrayNew>() || expr->is<ArrayInit>() || expr->is<I31New>() || + expr->is<StringConst>()) { return true; } |