Skip to content

Commit c03d538

Browse files
committed
Visit catch() handler block, ignoring ExceptionDecl when assigning DSAs
1 parent 18b235d commit c03d538

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/lib/Sema/SemaOmpSs.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,11 @@ class DSAAttrChecker final : public StmtVisitor<DSAAttrChecker, void> {
387387
}
388388
}
389389

390+
void VisitCXXCatchStmt(CXXCatchStmt *Node) {
391+
InnerDecls.insert(Node->getExceptionDecl());
392+
Visit(Node->getHandlerBlock());
393+
}
394+
390395
void VisitExpr(Expr *E) {
391396
for (Stmt *Child : E->children()) {
392397
if (Child)

0 commit comments

Comments
 (0)