diff options
Diffstat (limited to 'src/ir/properties.cpp')
-rw-r--r-- | src/ir/properties.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/properties.cpp b/src/ir/properties.cpp index b564b3bf1..63b7cedd1 100644 --- a/src/ir/properties.cpp +++ b/src/ir/properties.cpp @@ -40,7 +40,7 @@ bool isGenerative(Expression* curr, FeatureSet features) { // to whether it is valid in a wasm constant expression. static bool isValidInConstantExpression(Module& wasm, Expression* expr) { if (isSingleConstantExpression(expr) || expr->is<StructNew>() || - expr->is<ArrayNew>() || expr->is<ArrayNewFixed>() || expr->is<I31New>() || + expr->is<ArrayNew>() || expr->is<ArrayNewFixed>() || expr->is<RefI31>() || expr->is<StringConst>()) { return true; } |