summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny.ornl@gmail.com>2018-06-28 19:54:27 +0000
committerJoel E. Denny <jdenny.ornl@gmail.com>2018-06-28 19:54:27 +0000
commite0e7a8ae58fccea3897887381e65ae6307e236e4 (patch)
treedacfea7f8bb71d6c09668b8210175ba09b39fa1e /clang/lib/Sema
parent6613efbd4e43d4af459736cfdd6484e766bcb15d (diff)
downloadbcm5719-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.cpp2
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]
OpenPOWER on IntegriCloud