[clang] [clang][OpenMP] Diagnose badly-formed collapsed imperfect loop nests (#60678) (PR #101305)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 1 14:55:15 PDT 2024
================
@@ -9487,13 +9606,17 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
unsigned NestedLoopCount = 1;
bool SupportsNonPerfectlyNested = (SemaRef.LangOpts.OpenMP >= 50) &&
!isOpenMPLoopTransformationDirective(DKind);
+ llvm::SmallPtrSet<const Decl *, 4> CollapsedLoopVarDecls{};
----------------
alexey-bataev wrote:
`llvm::SmallPtrSet<const Decl *, 4> CollapsedLoopVarDecls;`
https://github.com/llvm/llvm-project/pull/101305
More information about the cfe-commits
mailing list