CheckNoBranching is currently handling only illegal branching out for constructs
with Parser::Name in them.
Extend the same for handling illegal branching out caused by Parser::Label based statements.
This patch could possibly solve one of the issues(typically branching out) mentioned in D92735.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/lib/Semantics/check-directive-structure.h | ||
---|---|---|
45 | Braces should be removed for simple if |
flang/lib/Semantics/check-directive-structure.h | ||
---|---|---|
45 | Was it a comment on fir-dev? [1] https://github.com/llvm/llvm-project/blob/master/flang/docs/C%2B%2Bstyle.md#layout |
flang/lib/Semantics/check-directive-structure.h | ||
---|---|---|
45 | Please conform to the style used in the Fortran front-end; we always use braces for safety and future maintainability. |
flang/lib/Semantics/check-directive-structure.h | ||
---|---|---|
45 | My bad :( |
Hi @sameeranjoshi , thank you for working on this!
Sadly with this patch one of our upstream builders has started failing: http://lab.llvm.org:8011/#/builders/33/builds/1866. More specifically,Semantics/omp-parallell01.f90 is failing.
All other builders are fine, which makes this weird. The only unique thing about the failing builder (flang-aarch64-ubuntu-clang) is that it uses clang-10. Could you take a look?
Edit: @kiranchandramohan just pointed out to me offline that this is probably fixed here: https://reviews.llvm.org/D94618.
Braces should be removed for simple if