aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2020-09-25 16:25:27 -0700
committerArtem Belevich <tra@google.com>2020-11-02 14:37:13 -0800
commitf38a9e51178add132d2c8ae160787fb2175a48a4 (patch)
treeb9dc23f371c09a6b0058ae7531522308968322e6 /clang/lib/CodeGen/CodeGenModule.cpp
parentee5d1a04494390ab8dbece1e32cb00312ecce4b1 (diff)
downloadllvm-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