ABataev added inline comments.
================
Comment at: clang/lib/CodeGen/CGStmtOpenMP.cpp:7865
+    const Stmt *CS = 
cast<CapturedStmt>(S.getAssociatedStmt())->getCapturedStmt();
+    if (CS->getStmtClass() == Stmt::ForStmtClass) {
+      const ForStmt &ForS = cast<ForStmt>(*CS);
----------------
```
if (const auto *ForS = dyn_cast<ForStmt>(CS); !ForS || 
!isa<DeclStmt>(ForS->getInit())) {
... 
} else {
  CGF.EmitStmt(CS);
}
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141528/new/

https://reviews.llvm.org/D141528

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to