[PATCH] D79237: [CUDA][HIP] Fix constexpr variables for C++17
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 15 13:37:30 PDT 2020
yaxunl updated this revision to Diff 264329.
yaxunl edited the summary of this revision.
yaxunl added a comment.
add implicit constant attribute to constexpr file scope variables and constexpr static data members in device compilation.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79237/new/
https://reviews.llvm.org/D79237
Files:
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaCUDA.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/CodeGenCUDA/constexpr-variables.cu
clang/test/SemaCUDA/constexpr-variables.cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79237.264329.patch
Type: text/x-patch
Size: 6379 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200515/d8e661bf/attachment-0001.bin>
More information about the cfe-commits
mailing list