================ @@ -997,6 +987,11 @@ class Sema final : public SemaBase { return *OpenACCPtr; } + SemaOpenMP &OpenMP() { + assert(OpenMPPtr); ---------------- alexey-bataev wrote: Add assertion message https://github.com/llvm/llvm-project/pull/88642