diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-12 20:30:17 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-12 20:30:17 +0000 |
commit | db4ddc5f6855fdd89cf2af9090f78fb7ebb7f032 (patch) | |
tree | 8036ebc434967a0cde3de705a16faea54d117bfd /js/src/jit/MIR.cpp | |
parent | c789882a294d29b3e5450a972ad67c4839c75e23 (diff) | |
parent | 9c75c8235e13e0f8309b11fa138253350bce0dd5 (diff) | |
download | uxp-db4ddc5f6855fdd89cf2af9090f78fb7ebb7f032.tar.gz |
Merge pull request 'Replace MOZ_FALLTHROUGH with [[fallthrough]]' (#2379) from 2343-fallthrough-work into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2379
Diffstat (limited to 'js/src/jit/MIR.cpp')
-rw-r--r-- | js/src/jit/MIR.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/jit/MIR.cpp b/js/src/jit/MIR.cpp index e7cb0e55f0..339ef9907b 100644 --- a/js/src/jit/MIR.cpp +++ b/js/src/jit/MIR.cpp @@ -2409,7 +2409,7 @@ CanProduceNegativeZero(MDefinition* def) case MDefinition::Op_Constant: if (def->type() == MIRType::Double && def->toConstant()->toDouble() == -0.0) return true; - MOZ_FALLTHROUGH; + [[fallthrough]]; case MDefinition::Op_BitAnd: case MDefinition::Op_BitOr: case MDefinition::Op_BitXor: @@ -2491,7 +2491,7 @@ NeedNegativeZeroCheck(MDefinition* def) if (rhs->id() < lhs->id() && CanProduceNegativeZero(lhs)) return true; - MOZ_FALLTHROUGH; + [[fallthrough]]; } case MDefinition::Op_StoreElement: case MDefinition::Op_StoreElementHole: @@ -3379,7 +3379,7 @@ MTypeOf::foldsTo(TempAllocator& alloc) type = JSTYPE_OBJECT; break; } - MOZ_FALLTHROUGH; + [[fallthrough]]; default: return this; } |