diff options
author | Artem Belevich <tra@google.com> | 2020-09-25 16:25:27 -0700 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2020-11-02 14:37:13 -0800 |
commit | f38a9e51178add132d2c8ae160787fb2175a48a4 (patch) | |
tree | b9dc23f371c09a6b0058ae7531522308968322e6 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | ee5d1a04494390ab8dbece1e32cb00312ecce4b1 (diff) | |
download | llvm-f38a9e51178add132d2c8ae160787fb2175a48a4.zip llvm-f38a9e51178add132d2c8ae160787fb2175a48a4.tar.gz llvm-f38a9e51178add132d2c8ae160787fb2175a48a4.tar.bz2 |
[CUDA] Allow local static variables with target attributes.
While CUDA documentation claims that such variables are not allowed[1], NVCC has
been accepting them since CUDA-10.0[2] and some headers in CUDA-11 rely on this
working.
1. https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#static-variables-function
2. https://godbolt.org/z/zsodzc
Differential Revision: https://reviews.llvm.org/D88345
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions