]> granicus.if.org Git - clang/commit
[CUDA] do not allow attribute-based overloading for __global__ functions.
authorArtem Belevich <tra@google.com>
Wed, 24 Feb 2016 21:54:45 +0000 (21:54 +0000)
committerArtem Belevich <tra@google.com>
Wed, 24 Feb 2016 21:54:45 +0000 (21:54 +0000)
commita4841b214ebe36b744a229a82d701a1f0cfe6dcd
tree3a9d122c00762d7e41fc256ae42948c8c1c7dd4f
parent93b27f5e1a63d7b3c0a33a1b0fbd9cbec86ebee5
[CUDA] do not allow attribute-based overloading for __global__ functions.

__global__ functions are present on both host and device side,
so providing __host__ or __device__ overloads is not going to
do anything useful.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261778 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/SemaCUDA/function-overload.cu