================ @@ -1759,8 +1759,35 @@ void Parser::ParseOpenMPAssumesDirective(OpenMPDirectiveKind DKind, Assumptions.push_back(Assumption); } + StmtResult AssociatedStmt; + + // Begin marking the scope for assume. + if (DKind == llvm::omp::Directive::OMPD_assume) { + + if (Tok.getKind() == clang::tok::annot_pragma_openmp_end) + ConsumeAnyToken(); + + DeclarationNameInfo DirName; + Actions.OpenMP().StartOpenMPDSABlock(DKind, DirName, Actions.getCurScope(), + Loc); + } ---------------- alexey-bataev wrote:
Introduce RAAI class for this and use it instead https://github.com/llvm/llvm-project/pull/97535 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits