================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to