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