summaryrefslogtreecommitdiff
path: root/src/ir/properties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/properties.cpp')
-rw-r--r--src/ir/properties.cpp2
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;
}