diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2019-08-22 16:48:26 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-08-22 16:48:26 +0000 |
commit | ebcfc9eaed5dcc7eec40a916c6d12de8515494a0 (patch) | |
tree | 0d031740eec77cf9c2f3fb3a9b7850af28f2ce5d /clang/lib/Sema/SemaDecl.cpp | |
parent | 41f89c348421c27387ba5063b4fb418a53abfea9 (diff) | |
download | bcm5719-llvm-ebcfc9eaed5dcc7eec40a916c6d12de8515494a0.tar.gz bcm5719-llvm-ebcfc9eaed5dcc7eec40a916c6d12de8515494a0.zip |
[OPENMP]Generalization of handling of declare target attribute.
Used OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration instead of
direct checking of the OMPDeclareTargetDeclAttr attribute.
llvm-svn: 369668
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index b8cefac2f90..f6064011be6 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -6799,7 +6799,7 @@ NamedDecl *Sema::ActOnVariableDeclarator( if (EmitTLSUnsupportedError && ((getLangOpts().CUDA && DeclAttrsMatchCUDAMode(getLangOpts(), NewVD)) || (getLangOpts().OpenMPIsDevice && - NewVD->hasAttr<OMPDeclareTargetDeclAttr>()))) + OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(NewVD)))) Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), diag::err_thread_unsupported); // CUDA B.2.5: "__shared__ and __constant__ variables have implied static |