diff options
author | Artem Belevich <tra@google.com> | 2016-06-06 22:54:57 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2016-06-06 22:54:57 +0000 |
commit | e9331c36e8539f3f552437cd9e90b27d3038740c (patch) | |
tree | a1f355ef454b1e11329a0844041436eae9bccace /test/CodeGenCUDA | |
parent | 9fdc667538076d682d47bacedc28fcd056a066b2 (diff) |
[CUDA] Add implicit conversion of __launch_bounds__ arguments to rvalue.
Fixes clang crash reported in PR27778.
Differential Revision: http://reviews.llvm.org/D20985
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271951 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCUDA')
-rw-r--r-- | test/CodeGenCUDA/launch-bounds.cu | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGenCUDA/launch-bounds.cu b/test/CodeGenCUDA/launch-bounds.cu index ecbd0ad705..6c369c6f3f 100644 --- a/test/CodeGenCUDA/launch-bounds.cu +++ b/test/CodeGenCUDA/launch-bounds.cu @@ -79,3 +79,8 @@ Kernel7() } // CHECK: !{{[0-9]+}} = !{void ()* @{{.*}}Kernel7{{.*}}, !"maxntidx", // CHECK-NOT: !{{[0-9]+}} = !{void ()* @{{.*}}Kernel7{{.*}}, !"minctasm", + +const char constchar = 12; +__global__ void __launch_bounds__(constint, constchar) Kernel8() {} +// CHECK: !{{[0-9]+}} = !{void ()* @{{.*}}Kernel8{{.*}}, !"maxntidx", i32 100 +// CHECK: !{{[0-9]+}} = !{void ()* @{{.*}}Kernel8{{.*}}, !"minctasm", i32 12 |