mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-22 04:24:56 +00:00
Arm64Emitter: Annotate switch fallthrough
Silences warnings and makes intent explicit.
This commit is contained in:
parent
d780ad1102
commit
2fa4729815
1 changed files with 2 additions and 0 deletions
|
@ -916,6 +916,7 @@ void ARM64XEmitter::SetJumpTarget(FixupBranch const& branch)
|
|||
{
|
||||
case 1: // CBNZ
|
||||
Not = true;
|
||||
[[fallthrough]];
|
||||
case 0: // CBZ
|
||||
{
|
||||
ASSERT_MSG(DYNA_REC, IsInRangeImm19(distance), "%s(%d): Received too large distance: %" PRIx64,
|
||||
|
@ -932,6 +933,7 @@ void ARM64XEmitter::SetJumpTarget(FixupBranch const& branch)
|
|||
break;
|
||||
case 4: // TBNZ
|
||||
Not = true;
|
||||
[[fallthrough]];
|
||||
case 3: // TBZ
|
||||
{
|
||||
ASSERT_MSG(DYNA_REC, IsInRangeImm14(distance), "%s(%d): Received too large distance: %" PRIx64,
|
||||
|
|
Loading…
Add table
Reference in a new issue