summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaOpenMP.cpp
diff options
context:
space:
mode:
authorDavid Sheinkman <davidsheinkman@outlook.com>2016-10-06 15:47:36 +0000
committerDavid Sheinkman <davidsheinkman@outlook.com>2016-10-06 15:47:36 +0000
commitd03c85c02ec444cddb0d5d098e9164dbe59e5bde (patch)
treea6b0a9d43fd348d8c8abce77dd2d7d995f54ac49 /clang/lib/Sema/SemaOpenMP.cpp
parent36919a4f7c3e8d38c2db427b6957d6402a3f8322 (diff)
downloadbcm5719-llvm-d03c85c02ec444cddb0d5d098e9164dbe59e5bde.tar.gz
bcm5719-llvm-d03c85c02ec444cddb0d5d098e9164dbe59e5bde.zip
[OpenMP] Check if the template specialization is mappable instead of specialized template Differential Revision: https://reviews.llvm.org/D25252
llvm-svn: 283460
Diffstat (limited to 'clang/lib/Sema/SemaOpenMP.cpp')
-rw-r--r--clang/lib/Sema/SemaOpenMP.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 7dcd81f69d8..237331da4a3 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -10523,9 +10523,6 @@ static bool IsCXXRecordForMappable(Sema &SemaRef, SourceLocation Loc,
if (!RD || RD->isInvalidDecl())
return true;
- if (auto *CTSD = dyn_cast<ClassTemplateSpecializationDecl>(RD))
- if (auto *CTD = CTSD->getSpecializedTemplate())
- RD = CTD->getTemplatedDecl();
auto QTy = SemaRef.Context.getRecordType(RD);
if (RD->isDynamicClass()) {
SemaRef.Diag(Loc, diag::err_omp_not_mappable_type) << QTy;
OpenPOWER on IntegriCloud