[flang-commits] [flang] [llvm] [flang][OpenMP] Check that IF clause applies to at most one leaf (PR #205164)
via flang-commits
flang-commits at lists.llvm.org
Tue Jun 23 13:00:32 PDT 2026
================
@@ -388,6 +389,10 @@ class OmpStructureChecker : public OmpStructureCheckerBase {
int allocateDirectiveLevel_{0};
parser::CharBlock visitedAtomicSource_;
+ // Mapping of directive-name-modifier constituents to the sources of the
+ // IF clauses that referenced them. If there was no modifier, the entire
+ // directive is assumed to be listed.
+ std::map<llvm::omp::Directive, parser::CharBlock> ifLeafs;
----------------
kwyatt-ext wrote:
Shouldn't this be "ifLeafs_" for LLVM consistency of a private member?
https://github.com/llvm/llvm-project/pull/205164
More information about the flang-commits
mailing list