[PATCH] D130168: [CUDA] remove duplicate condition
VitalyR via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 20 06:48:52 PDT 2022
VitalyR created this revision.
Herald added subscribers: mattd, yaxunl.
Herald added a project: All.
VitalyR requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130168
Files:
clang/lib/Sema/SemaCUDA.cpp
Index: clang/lib/Sema/SemaCUDA.cpp
===================================================================
--- clang/lib/Sema/SemaCUDA.cpp
+++ clang/lib/Sema/SemaCUDA.cpp
@@ -714,7 +714,7 @@
// Do not promote dependent variables since the cotr/dtor/initializer are
// not determined. Do it after instantiation.
if (getLangOpts().CUDAIsDevice && !VD->hasAttr<CUDAConstantAttr>() &&
- !VD->hasAttr<CUDAConstantAttr>() && !VD->hasAttr<CUDASharedAttr>() &&
+ !VD->hasAttr<CUDASharedAttr>() &&
(VD->isFileVarDecl() || VD->isStaticDataMember()) &&
!IsDependentVar(VD) &&
((VD->isConstexpr() || VD->getType().isConstQualified()) &&
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130168.446140.patch
Type: text/x-patch
Size: 661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220720/24171117/attachment.bin>
More information about the cfe-commits
mailing list