diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-12-18 05:05:56 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-12-18 05:05:56 +0000 |
commit | eb48235033313f2a6afccbcd26788954c97a97b3 (patch) | |
tree | 8d085a5304caaf0c9e8ccab42e20f4c18452ca35 /clang/lib/Sema/TreeTransform.h | |
parent | 125592dc8d483efb8ac2d6fb3710fcf356206ee0 (diff) | |
download | bcm5719-llvm-eb48235033313f2a6afccbcd26788954c97a97b3.tar.gz bcm5719-llvm-eb48235033313f2a6afccbcd26788954c97a97b3.zip |
[OPENMP 4.5] Parsing/sema analysis for 'depend(source)' clause in 'ordered' directive.
OpenMP 4.5 adds 'depend(source)' clause for 'ordered' directive to support cross-iteration dependence. Patch adds parsing and semantic analysis for this construct.
llvm-svn: 255986
Diffstat (limited to 'clang/lib/Sema/TreeTransform.h')
-rw-r--r-- | clang/lib/Sema/TreeTransform.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h index 200701e13db..f11f135d462 100644 --- a/clang/lib/Sema/TreeTransform.h +++ b/clang/lib/Sema/TreeTransform.h @@ -7071,10 +7071,7 @@ StmtResult TreeTransform<Derived>::TransformOMPExecutableDirective( } } StmtResult AssociatedStmt; - if (D->hasAssociatedStmt()) { - if (!D->getAssociatedStmt()) { - return StmtError(); - } + if (D->hasAssociatedStmt() && D->getAssociatedStmt()) { getDerived().getSema().ActOnOpenMPRegionStart(D->getDirectiveKind(), /*CurScope=*/nullptr); StmtResult Body; |