diff options
| author | Joel E. Denny <jdenny.ornl@gmail.com> | 2018-06-28 19:54:27 +0000 |
|---|---|---|
| committer | Joel E. Denny <jdenny.ornl@gmail.com> | 2018-06-28 19:54:27 +0000 |
| commit | e0e7a8ae58fccea3897887381e65ae6307e236e4 (patch) | |
| tree | dacfea7f8bb71d6c09668b8210175ba09b39fa1e /clang/lib/Sema | |
| parent | 6613efbd4e43d4af459736cfdd6484e766bcb15d (diff) | |
| download | bcm5719-llvm-e0e7a8ae58fccea3897887381e65ae6307e236e4.tar.gz bcm5719-llvm-e0e7a8ae58fccea3897887381e65ae6307e236e4.zip | |
Revert r335907: [OPENMP] Fix incomplete type check for array reductions
Sorry, forgot to add commit log attributes again.
llvm-svn: 335910
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaOpenMP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index 6fb0125e6eb..7da9df90acb 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp @@ -10335,7 +10335,7 @@ static bool actOnOMPReductionKindClause( // OpenMP [2.9.3.3, Restrictions, C/C++, p.3] // A variable that appears in a private clause must not have an incomplete // type or a reference type. - if (S.RequireCompleteType(ELoc, D->getType(), + if (S.RequireCompleteType(ELoc, Type, diag::err_omp_reduction_incomplete_type)) continue; // OpenMP [2.14.3.6, reduction clause, Restrictions] |

