Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flang] Add fallthrough annotations in visit.h #90014

Merged

Conversation

alexander-shaposhnikov
Copy link
Collaborator

Add fallthrough annotations to avoid warnings if -Wimplicit-fallthrough is enabled.
Note, LLVM_FALLTHROUGH can't be included into VISIT_CASE_N - it would cause a compile error for the last case.

Test plan: ninja check-all

@llvmbot llvmbot added the flang Flang issues not falling into any other category label Apr 25, 2024
@alexander-shaposhnikov alexander-shaposhnikov merged commit eb05a2e into llvm:main Apr 25, 2024
5 of 6 checks passed
@vzakhari
Copy link
Contributor

@alexander-shaposhnikov, FYI, this broke Fortran runtime builders: https://lab.llvm.org/buildbot/#/builders/267/builds/1277
I expect other bots that build flang will also fail, but later.

alexander-shaposhnikov added a commit that referenced this pull request Apr 25, 2024
@alexander-shaposhnikov
Copy link
Collaborator Author

@vzakhari - thanks, I've committed the revert: 8dcb90b

@vzakhari
Copy link
Contributor

Thank you! It looks like the issue might be related only to out-of-tree builds of FortranRuntime.

@alexander-shaposhnikov
Copy link
Collaborator Author

p.s. i think we probably no longer need to use a macro since LLVM now requires c++17 and [[fallthrough]] may be used directly.

alexander-shaposhnikov added a commit that referenced this pull request Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants