[llvm-branch-commits] [flang] [flang][OpenMP] Better diagnostics for invalid or misplaced directives (PR #168885)

Tom Eccles via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Nov 20 08:58:32 PST 2025


================
@@ -389,6 +394,7 @@ class OmpStructureChecker : public OmpStructureCheckerBase {
   std::vector<LoopConstruct> loopStack_;
   // Scopes for scoping units.
   std::vector<const Scope *> scopeStack_;
+  bool invalidState_{false}; // Set during visiting OpenMPMisplacedEndDirective
----------------
tblah wrote:

What is this used for? I only see writes to it

https://github.com/llvm/llvm-project/pull/168885


More information about the llvm-branch-commits mailing list