Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9658 from lioncash/fallthrough
BlockingLoop/Jit64: Indicate explicit fallthrough where applicable
  • Loading branch information
leoetlino committed Apr 19, 2021
2 parents cf80ed7 + adebc49 commit 34348fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/Common/BlockingLoop.h
Expand Up @@ -158,6 +158,7 @@ class BlockingLoop
// However, if we're not in the STATE_DONE state any more, the event should also be
// triggered so that we'll skip the next waiting call quite fast.
m_done_event.Set();
[[fallthrough]];

case STATE_DONE:
// We're done now. So time to check if we want to sleep or if we want to stay in a busy
Expand All @@ -173,6 +174,7 @@ class BlockingLoop
// Busy loop.
break;
}
[[fallthrough]];

case STATE_SLEEPING:
// Just relax
Expand Down
2 changes: 2 additions & 0 deletions Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp
Expand Up @@ -74,6 +74,7 @@ void Jit64::lXXx(UGeckoInstruction inst)
{
case 534: // lwbrx
byte_reversed = true;
[[fallthrough]];
case 23: // lwzx
case 55: // lwzux
accessSize = 32;
Expand All @@ -87,6 +88,7 @@ void Jit64::lXXx(UGeckoInstruction inst)
break;
case 790: // lhbrx
byte_reversed = true;
[[fallthrough]];
case 279: // lhzx
case 311: // lhzux
accessSize = 16;
Expand Down

0 comments on commit 34348fa

Please sign in to comment.