[llvm-branch-commits] [flang] [flang][OpenMP] Semantic checks for DOACROSS clause (PR #115397)
Krzysztof Parzyszek via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Nov 8 07:19:43 PST 2024
================
@@ -541,6 +541,7 @@ void OmpStructureChecker::Leave(const parser::OpenMPConstruct &) {
}
void OmpStructureChecker::Enter(const parser::OpenMPLoopConstruct &x) {
+ loopStack_.push_back(&x);
----------------
kparzysz wrote:
The loopStack was added to keep track of the induction variables in the loop nest being visited. This is used to verify that the variables in the SINK iteration vector are actually induction variables.
See flang/lib/Semantics/check-omp-structure.cpp, lines 3610-3633.
https://github.com/llvm/llvm-project/pull/115397
More information about the llvm-branch-commits
mailing list