mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 08:49:20 +01:00
Arm64Emitter: Annotate switch fallthrough
Silences warnings and makes intent explicit.
This commit is contained in:
parent
d780ad1102
commit
2fa4729815
@ -916,6 +916,7 @@ void ARM64XEmitter::SetJumpTarget(FixupBranch const& branch)
|
|||||||
{
|
{
|
||||||
case 1: // CBNZ
|
case 1: // CBNZ
|
||||||
Not = true;
|
Not = true;
|
||||||
|
[[fallthrough]];
|
||||||
case 0: // CBZ
|
case 0: // CBZ
|
||||||
{
|
{
|
||||||
ASSERT_MSG(DYNA_REC, IsInRangeImm19(distance), "%s(%d): Received too large distance: %" PRIx64,
|
ASSERT_MSG(DYNA_REC, IsInRangeImm19(distance), "%s(%d): Received too large distance: %" PRIx64,
|
||||||
@ -932,6 +933,7 @@ void ARM64XEmitter::SetJumpTarget(FixupBranch const& branch)
|
|||||||
break;
|
break;
|
||||||
case 4: // TBNZ
|
case 4: // TBNZ
|
||||||
Not = true;
|
Not = true;
|
||||||
|
[[fallthrough]];
|
||||||
case 3: // TBZ
|
case 3: // TBZ
|
||||||
{
|
{
|
||||||
ASSERT_MSG(DYNA_REC, IsInRangeImm14(distance), "%s(%d): Received too large distance: %" PRIx64,
|
ASSERT_MSG(DYNA_REC, IsInRangeImm14(distance), "%s(%d): Received too large distance: %" PRIx64,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user