Skip to content

Commit

Permalink
Reapply "[Flang] Add fallthrough annotations in visit.h (#90014)"
Browse files Browse the repository at this point in the history
Use [[fallthrough]] directly (similarly to
https://reviews.llvm.org/D131346).

This recommits eb05a2e.
  • Loading branch information
alexander-shaposhnikov committed Apr 25, 2024
1 parent b7e9dae commit 72da62b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flang/include/flang/Common/visit.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,17 @@ inline RT_API_ATTRS RESULT Log2VisitHelper(
return visitor(std::get<(LOW + N)>(std::forward<VARIANT>(u))...); \
}
VISIT_CASE_N(1)
[[fallthrough]];
VISIT_CASE_N(2)
[[fallthrough]];
VISIT_CASE_N(3)
[[fallthrough]];
VISIT_CASE_N(4)
[[fallthrough]];
VISIT_CASE_N(5)
[[fallthrough]];
VISIT_CASE_N(6)
[[fallthrough]];
VISIT_CASE_N(7)
#undef VISIT_CASE_N
}
Expand Down

0 comments on commit 72da62b

Please sign in to comment.