================ @@ -10554,6 +10687,8 @@ SemaOpenMP::ActOnOpenMPDispatchDirective(ArrayRef<OMPClause *> Clauses, return StmtError(); Stmt *S = cast<CapturedStmt>(AStmt)->getCapturedStmt(); + if (isa<CapturedStmt>(S)) + S = cast<CapturedStmt>(S)->getCapturedStmt(); ---------------- alexey-bataev wrote:
```suggestion if (auto *CS = dyn_cast<CapturedStmt>(S)) S = CS->getCapturedStmt(); ``` https://github.com/llvm/llvm-project/pull/131838 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits