summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/wasm-reduce.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp
index 95e315e96..b84fe8e38 100644
--- a/src/tools/wasm-reduce.cpp
+++ b/src/tools/wasm-reduce.cpp
@@ -1085,7 +1085,7 @@ struct Reducer
RefNull* n = builder->makeRefNull(curr->type);
return tryToReplaceCurrent(n);
}
- if (curr->type.isTuple()) {
+ if (curr->type.isTuple() && curr->type.isDefaultable()) {
Expression* n =
builder->makeConstantExpression(Literal::makeZeros(curr->type));
return tryToReplaceCurrent(n);