Skip to content

Commit

Permalink
Use C++17 [[fallthrough]] in 1 file inc cachelib/allocator/MM2Q-inl.h
Browse files Browse the repository at this point in the history
Reviewed By: jaesoo-fb

Differential Revision: D51778168

fbshipit-source-id: 497809a9ca0c88dd95038effbc157b00d1961448
  • Loading branch information
r-barnes authored and facebook-github-bot committed Dec 5, 2023
1 parent ac00245 commit b59d91e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cachelib/allocator/MM2Q-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ bool MM2Q::Container<T, HookPtr>::replace(T& oldNode, T& newNode) noexcept {
markHot(newNode);
break;
case LruType::ColdTail:
markTail(newNode); // pass through to also mark cold
markTail(newNode);
[[fallthrough]]; // pass through to also mark cold
case LruType::Cold:
markCold(newNode);
break;
Expand Down

0 comments on commit b59d91e

Please sign in to comment.