summaryrefslogtreecommitdiff
path: root/src/asm2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r--src/asm2wasm.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index ef19c32ff..97c079a34 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -734,7 +734,8 @@ private:
return 2;
case 8:
return 3;
- default: {}
+ default: {
+ }
}
abort();
return -1; // avoid warning
@@ -1515,7 +1516,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) {
assert(params[i] == Type::f64 ||
curr->operands[i]->type == Type::unreachable);
// overloaded, upgrade to f64
- switch (curr->operands[i]->type.getSingle()) {
+ switch (curr->operands[i]->type.getBasic()) {
case Type::i32:
curr->operands[i] = parent->builder.makeUnary(
ConvertSInt32ToFloat64, curr->operands[i]);
@@ -1524,7 +1525,9 @@ void Asm2WasmBuilder::processAsm(Ref ast) {
curr->operands[i] =
parent->builder.makeUnary(PromoteFloat32, curr->operands[i]);
break;
- default: {} // f64, unreachable, etc., are all good
+ default: {
+ // f64, unreachable, etc., are all good
+ }
}
}
}
@@ -1536,7 +1539,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) {
if (importResults == Type::f64) {
// we use a JS f64 value which is the most general, and convert to
// it
- switch (old.getSingle()) {
+ switch (old.getBasic()) {
case Type::i32: {
Unary* trunc =
parent->builder.makeUnary(TruncSFloat64ToInt32, curr);