summaryrefslogtreecommitdiff
path: root/js/src/wasm
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/wasm')
-rw-r--r--js/src/wasm/WasmBaselineCompile.cpp12
-rw-r--r--js/src/wasm/WasmTextToBinary.cpp2
2 files changed, 7 insertions, 7 deletions
diff --git a/js/src/wasm/WasmBaselineCompile.cpp b/js/src/wasm/WasmBaselineCompile.cpp
index 38d8d5b99b..850994b3f0 100644
--- a/js/src/wasm/WasmBaselineCompile.cpp
+++ b/js/src/wasm/WasmBaselineCompile.cpp
@@ -3301,7 +3301,7 @@ class BaseCompiler
case Scalar::Uint16:
case Scalar::Uint32: {
isSigned = false;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case Scalar::Int8:
case Scalar::Int16:
case Scalar::Int32:
@@ -3380,15 +3380,15 @@ class BaseCompiler
switch (access.type()) {
case Scalar::Uint8:
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case Scalar::Uint16:
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case Scalar::Int8:
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case Scalar::Int16:
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case Scalar::Int32:
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case Scalar::Uint32: {
Register rt = src.tag == AnyReg::I64 ? src.i64().reg.low : src.i32().reg;
storeI32(access, ptr, rt);
diff --git a/js/src/wasm/WasmTextToBinary.cpp b/js/src/wasm/WasmTextToBinary.cpp
index c3a707b550..66b97d380a 100644
--- a/js/src/wasm/WasmTextToBinary.cpp
+++ b/js/src/wasm/WasmTextToBinary.cpp
@@ -824,7 +824,7 @@ WasmTokenStream::next()
return nan(begin);
if (!IsWasmDigit(*cur_))
break;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
return literal(begin);