================
@@ -7163,50 +7247,59 @@ static lower::pft::Evaluation *spliceAssociatedDoEval(
          "metadirective eval not found in parent list");
 
   auto firstAssociatedIt = std::next(metaIt);
-  auto loopIt = firstAssociatedIt;
-  while (loopIt != parentList->end() &&
-         isIgnorableMetadirectiveLoopAssociationEval(*loopIt))
-    ++loopIt;
+  auto associatedIt = firstAssociatedIt;
+  auto isNonExecutableDirective = [](lower::pft::Evaluation &e) {
+    const auto *directive = e.getIf<parser::CompilerDirective>();
+    return directive && isNonExecutableCompilerDirective(*directive);
----------------
MattPD wrote:

Confirmed at e604e9d: TARGET no longer maps `x` and still captures the BLOCK's 
references.


https://github.com/llvm/llvm-project/pull/224431
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to