]> granicus.if.org Git - clang/commit
Workaround attribute ordering issue with kernel only attributes
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 5 Dec 2014 18:03:58 +0000 (18:03 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 5 Dec 2014 18:03:58 +0000 (18:03 +0000)
commitdcbb8fe6d53e6737e198954850aaa33cf19bdd1d
tree33d64c5e953f9756271d213c71856d910f8d8e72
parentaefc430bcddaa7b89636e54a07e2ac3bbf9eadf3
Workaround attribute ordering issue with kernel only attributes

Placing the attribute after the kernel keyword would incorrectly
reject the attribute, so use the smae workaround that other
kernel only attributes use.

Also add a FIXME because there are two different phrasings now
for the same error, althoug amdgpu_num_[sv]gpr uses a consistent one.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223490 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
lib/Sema/SemaDeclAttr.cpp
test/SemaCUDA/amdgpu-num-gpr-attr.cu
test/SemaOpenCL/amdgpu-num-register-attrs.cl