[flang-commits] [flang] [flang][OpenMP] Use common utility functions to get affected nest depth (PR #191418)
Jason Van Beusekom via flang-commits
flang-commits at lists.llvm.org
Fri Apr 10 13:10:00 PDT 2026
================
@@ -2081,7 +2062,8 @@ bool OmpAttributeVisitor::Pre(const parser::OpenMPLoopConstruct &x) {
IssueNonConformanceWarning(beginName.v, beginName.source, version);
}
ClearDataSharingAttributeObjects();
- SetContextAssociatedLoopLevel(GetNumAffectedLoopsFromLoopConstruct(x));
+ int64_t affectedDepth{GetNumAffectedLoopsFromLoopConstruct(x)};
+ SetContextAssociatedLoopLevel(affectedDepth);
----------------
Jason-Van-Beusekom wrote:
Is there a reason why you split this?
https://github.com/llvm/llvm-project/pull/191418
More information about the flang-commits
mailing list