summaryrefslogtreecommitdiff
path: root/src/tools/wasm-reduce.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm-reduce.cpp')
-rw-r--r--src/tools/wasm-reduce.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp
index 7a81007dc..bb2de0896 100644
--- a/src/tools/wasm-reduce.cpp
+++ b/src/tools/wasm-reduce.cpp
@@ -1031,14 +1031,14 @@ struct Reducer
}
if (curr->type.isTuple()) {
Expression* n =
- builder->makeConstantExpression(Literal::makeZero(curr->type));
+ builder->makeConstantExpression(Literal::makeZeros(curr->type));
return tryToReplaceCurrent(n);
}
Const* c = builder->makeConst(int32_t(0));
if (tryToReplaceCurrent(c)) {
return true;
}
- c->value = Literal::makeFromInt32(1, curr->type);
+ c->value = Literal::makeOne(curr->type);
c->type = curr->type;
return tryToReplaceCurrent(c);
}