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

Krzysztof Parzyszek via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Nov 20 09:08:43 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
----------------
kparzysz wrote:

Removed.

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


More information about the llvm-branch-commits mailing list