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.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp
index 5a05fc7d2..ac00ce045 100644
--- a/src/tools/wasm-reduce.cpp
+++ b/src/tools/wasm-reduce.cpp
@@ -577,9 +577,9 @@ struct Reducer
continue; // no conversion
}
Expression* fixed = nullptr;
- switch (curr->type) {
+ switch (curr->type.getSingle()) {
case Type::i32: {
- switch (child->type) {
+ switch (child->type.getSingle()) {
case Type::i32:
WASM_UNREACHABLE("invalid type");
case Type::i64:
@@ -604,7 +604,7 @@ struct Reducer
break;
}
case Type::i64: {
- switch (child->type) {
+ switch (child->type.getSingle()) {
case Type::i32:
fixed = builder->makeUnary(ExtendSInt32, child);
break;
@@ -629,7 +629,7 @@ struct Reducer
break;
}
case Type::f32: {
- switch (child->type) {
+ switch (child->type.getSingle()) {
case Type::i32:
fixed = builder->makeUnary(ConvertSInt32ToFloat32, child);
break;
@@ -654,7 +654,7 @@ struct Reducer
break;
}
case Type::f64: {
- switch (child->type) {
+ switch (child->type.getSingle()) {
case Type::i32:
fixed = builder->makeUnary(ConvertSInt32ToFloat64, child);
break;