diff options
| -rw-r--r-- | clang/lib/Sema/SemaOpenMP.cpp | 14 | ||||
| -rw-r--r-- | clang/test/AST/ast-dump-openmp-sections.cpp | 57 |
2 files changed, 0 insertions, 71 deletions
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index 6b345bfd239..6716329e26a 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp @@ -5971,13 +5971,6 @@ StmtResult Sema::ActOnOpenMPSectionsDirective(ArrayRef<OMPClause *> Clauses, return StmtError(); } - // 1.2.2 OpenMP Language Terminology - // Structured block - An executable statement with a single entry at the - // top and a single exit at the bottom. - // The point of exit cannot be a branch out of the structured block. - // longjmp() and throw() must not violate the entry/exit criteria. - cast<CapturedStmt>(AStmt)->getCapturedDecl()->setNothrow(); - setFunctionHasBranchProtectedScope(); return OMPSectionsDirective::Create(Context, StartLoc, EndLoc, Clauses, AStmt, @@ -5992,13 +5985,6 @@ StmtResult Sema::ActOnOpenMPSectionDirective(Stmt *AStmt, assert(isa<CapturedStmt>(AStmt) && "Captured statement expected"); - // 1.2.2 OpenMP Language Terminology - // Structured block - An executable statement with a single entry at the - // top and a single exit at the bottom. - // The point of exit cannot be a branch out of the structured block. - // longjmp() and throw() must not violate the entry/exit criteria. - cast<CapturedStmt>(AStmt)->getCapturedDecl()->setNothrow(); - setFunctionHasBranchProtectedScope(); DSAStack->setParentCancelRegion(DSAStack->isCancelRegion()); diff --git a/clang/test/AST/ast-dump-openmp-sections.cpp b/clang/test/AST/ast-dump-openmp-sections.cpp deleted file mode 100644 index 79bb751a6e1..00000000000 --- a/clang/test/AST/ast-dump-openmp-sections.cpp +++ /dev/null @@ -1,57 +0,0 @@ -// RUN: %clang_cc1 -verify -fopenmp -ast-dump %s | FileCheck %s -// RUN: %clang_cc1 -verify -fopenmp-simd -ast-dump %s | FileCheck %s -// expected-no-diagnostics - -void sections() { -#pragma omp sections - { -#pragma omp section - { - } -#pragma omp section - { - } - } -} - -// CHECK: `-FunctionDecl -// CHECK-NEXT: `-CompoundStmt -// CHECK-NEXT: `-OMPSectionsDirective -// CHECK-NEXT: `-CapturedStmt -// CHECK-NEXT: `-CapturedDecl {{.*}} nothrow -// CHECK-NEXT: |-CompoundStmt -// CHECK-NEXT: | |-OMPSectionDirective -// CHECK-NEXT: | | `-CapturedStmt -// CHECK-NEXT: | | `-CapturedDecl {{.*}} nothrow -// CHECK-NEXT: | | |-CompoundStmt -// CHECK-NEXT: | | `-ImplicitParamDecl -// CHECK-NEXT: | `-OMPSectionDirective -// CHECK-NEXT: | `-CapturedStmt -// CHECK-NEXT: | `-CapturedDecl {{.*}} nothrow -// CHECK-NEXT: | |-CompoundStmt -// CHECK-NEXT: | `-ImplicitParamDecl -// CHECK-NEXT: |-ImplicitParamDecl -// CHECK-NEXT: |-CXXRecordDecl -// CHECK-NEXT: | |-DefinitionData -// CHECK-NEXT: | | |-DefaultConstructor -// CHECK-NEXT: | | |-CopyConstructor -// CHECK-NEXT: | | |-MoveConstructor -// CHECK-NEXT: | | |-CopyAssignment -// CHECK-NEXT: | | |-MoveAssignment -// CHECK-NEXT: | | `-Destructor -// CHECK-NEXT: | `-CapturedRecordAttr -// CHECK-NEXT: |-CapturedDecl {{.*}} nothrow -// CHECK-NEXT: | |-CompoundStmt -// CHECK-NEXT: | `-ImplicitParamDecl -// CHECK-NEXT: |-CXXRecordDecl -// CHECK-NEXT: | |-DefinitionData -// CHECK-NEXT: | | |-DefaultConstructor -// CHECK-NEXT: | | |-CopyConstructor -// CHECK-NEXT: | | |-MoveConstructor -// CHECK-NEXT: | | |-CopyAssignment -// CHECK-NEXT: | | |-MoveAssignment -// CHECK-NEXT: | | `-Destructor -// CHECK-NEXT: | `-CapturedRecordAttr -// CHECK-NEXT: `-CapturedDecl {{.*}} nothrow -// CHECK-NEXT: |-CompoundStmt -// CHECK-NEXT: `-ImplicitParamDecl |

