Skip to content

Commit 72da62b

Browse files
Reapply "[Flang] Add fallthrough annotations in visit.h (#90014)"
Use [[fallthrough]] directly (similarly to https://reviews.llvm.org/D131346). This recommits eb05a2e.
1 parent b7e9dae commit 72da62b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flang/include/flang/Common/visit.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,17 @@ inline RT_API_ATTRS RESULT Log2VisitHelper(
4040
return visitor(std::get<(LOW + N)>(std::forward<VARIANT>(u))...); \
4141
}
4242
VISIT_CASE_N(1)
43+
[[fallthrough]];
4344
VISIT_CASE_N(2)
45+
[[fallthrough]];
4446
VISIT_CASE_N(3)
47+
[[fallthrough]];
4548
VISIT_CASE_N(4)
49+
[[fallthrough]];
4650
VISIT_CASE_N(5)
51+
[[fallthrough]];
4752
VISIT_CASE_N(6)
53+
[[fallthrough]];
4854
VISIT_CASE_N(7)
4955
#undef VISIT_CASE_N
5056
}

0 commit comments

Comments
 (0)