[llvm-branch-commits] [clang] [llvm] [clang][OpenMP] Use different ids for block and s/a ORDERED directive (PR #214728)

Krzysztof Parzyszek via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Aug 7 06:51:21 PDT 2026


================
@@ -554,6 +554,9 @@ class OMPExecutableDirective : public Stmt {
   }
 
   OpenMPDirectiveKind getDirectiveKind() const { return Kind; }
+  void setDirectiveKind(OpenMPDirectiveKind D) const {
----------------
kparzysz wrote:

This is removed in the last PR in the stack, the one that separates this class into two.  I needed this hack because otherwise there is no way to reset the directive id once it's been set (it's stored in the base class).

This could have been avoided, but I'd have to merge this and the last PRs into one.  Since that would be a large change I kept them separate.

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


More information about the llvm-branch-commits mailing list