Skip to content

Commit a21f342

Browse files
committed
Revert "[AST][OpenMP] OpenMP Sections / Section constructs contain Structured blocks"
Further reviews (D57594, D57615) have revealed that this was not reviewed, and that the differential's description was not read during the review, thus rendering this commit invalid. This reverts commit r352882. llvm-svn: 352933
1 parent 05fc7ed commit a21f342

File tree

2 files changed

+0
-71
lines changed

2 files changed

+0
-71
lines changed

clang/lib/Sema/SemaOpenMP.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5971,13 +5971,6 @@ StmtResult Sema::ActOnOpenMPSectionsDirective(ArrayRef<OMPClause *> Clauses,
59715971
return StmtError();
59725972
}
59735973

5974-
// 1.2.2 OpenMP Language Terminology
5975-
// Structured block - An executable statement with a single entry at the
5976-
// top and a single exit at the bottom.
5977-
// The point of exit cannot be a branch out of the structured block.
5978-
// longjmp() and throw() must not violate the entry/exit criteria.
5979-
cast<CapturedStmt>(AStmt)->getCapturedDecl()->setNothrow();
5980-
59815974
setFunctionHasBranchProtectedScope();
59825975

59835976
return OMPSectionsDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt,
@@ -5992,13 +5985,6 @@ StmtResult Sema::ActOnOpenMPSectionDirective(Stmt *AStmt,
59925985

59935986
assert(isa<CapturedStmt>(AStmt) && "Captured statement expected");
59945987

5995-
// 1.2.2 OpenMP Language Terminology
5996-
// Structured block - An executable statement with a single entry at the
5997-
// top and a single exit at the bottom.
5998-
// The point of exit cannot be a branch out of the structured block.
5999-
// longjmp() and throw() must not violate the entry/exit criteria.
6000-
cast<CapturedStmt>(AStmt)->getCapturedDecl()->setNothrow();
6001-
60025988
setFunctionHasBranchProtectedScope();
60035989
DSAStack->setParentCancelRegion(DSAStack->isCancelRegion());
60045990

clang/test/AST/ast-dump-openmp-sections.cpp

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)