]> granicus.if.org Git - clang/commit
[CUDA] Allow static variables in __host__ __device__ functions, so long as they're...
authorJustin Lebar <jlebar@google.com>
Thu, 13 Oct 2016 18:45:17 +0000 (18:45 +0000)
committerJustin Lebar <jlebar@google.com>
Thu, 13 Oct 2016 18:45:17 +0000 (18:45 +0000)
commit75a3d319e9bdad831c47f449d7406a5ca61781c5
treebb1c0a489146a723cce6e82735a2b3265a36f790
parenta1f58c85829f2c491e9cf32445f8c8287f11d80f
[CUDA] Allow static variables in __host__ __device__ functions, so long as they're never codegen'ed for device.

Reviewers: tra, rnk

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D25150

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284145 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/SemaCUDA/device-var-init.cu
test/SemaCUDA/static-vars-hd.cu [new file with mode: 0644]