Arm64Emitter: Annotate switch fallthrough

Silences warnings and makes intent explicit.
This commit is contained in:
Lioncash 2020-12-30 20:07:02 -05:00
parent d780ad1102
commit 2fa4729815
1 changed files with 2 additions and 0 deletions

View File

@ -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,