summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2016-02-08 09:29:13 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2016-02-08 09:29:13 +0000
commit90c228f0baee4e807f7355066f31c3438f1fcafd (patch)
tree92068ace18446aeb21f0b85563da405914f8be74 /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
parent9ab99ab985f7e4d6eb21deaedbf75344833f1465 (diff)
downloadbcm5719-llvm-90c228f0baee4e807f7355066f31c3438f1fcafd.tar.gz
bcm5719-llvm-90c228f0baee4e807f7355066f31c3438f1fcafd.zip
[OPENMP 4.5] Ccapture/codegen of private non-static data members.
OpenMP 4.5 introduces privatization of non-static data members of current class in non-static member functions. To correctly handle such kind of privatization a new (pseudo)declaration VarDecl-based node is added. It allows to reuse an existing code for capturing variables in Lambdas/Block/Captured blocks of code for correct privatization and codegen. llvm-svn: 260077
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiateDecl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
index 625760c68ca..0f011ab159a 100644
--- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -2483,6 +2483,11 @@ Decl *TemplateDeclInstantiator::VisitOMPThreadPrivateDecl(
return TD;
}
+Decl *TemplateDeclInstantiator::VisitOMPCapturedFieldDecl(
+ OMPCapturedFieldDecl * /*D*/) {
+ llvm_unreachable("Should not be met in templates");
+}
+
Decl *TemplateDeclInstantiator::VisitFunctionDecl(FunctionDecl *D) {
return VisitFunctionDecl(D, nullptr);
}
OpenPOWER on IntegriCloud