]> granicus.if.org Git - clang/commitdiff
CUDA: the device and host attributes must be inheritable, in order
authorPeter Collingbourne <peter@pcc.me.uk>
Sun, 20 May 2012 23:28:32 +0000 (23:28 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sun, 20 May 2012 23:28:32 +0000 (23:28 +0000)
to deal with NVIDIA's headers.  We'll need to think of another way
to handle multiple host/device definitions within the same TU.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157171 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Attr.td

index 7d05b72a74afabd5a46e0c4bb1d49de2a6e81885..f4370113fd09bcb047c1899993fd5eefee56136b 100644 (file)
@@ -267,7 +267,7 @@ def CUDAConstant : InheritableAttr {
   let Spellings = ["constant"];
 }
 
-def CUDADevice : Attr {
+def CUDADevice : InheritableAttr {
   let Spellings = ["device"];
 }
 
@@ -275,7 +275,7 @@ def CUDAGlobal : InheritableAttr {
   let Spellings = ["global"];
 }
 
-def CUDAHost : Attr {
+def CUDAHost : InheritableAttr {
   let Spellings = ["host"];
 }