diff options
| author | Richard Trieu <rtrieu@google.com> | 2018-03-28 04:16:13 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2018-03-28 04:16:13 +0000 |
| commit | b402580616617a5c2d80f3d1c343b8f74bd7c3b5 (patch) | |
| tree | d360a3d9382d397d8da2c23771a4e3a6f56bbe55 /clang/test/SemaCUDA | |
| parent | a95b0df5eddbe7fa1e9f8fe0b1ff62427e1c0318 (diff) | |
| download | bcm5719-llvm-b402580616617a5c2d80f3d1c343b8f74bd7c3b5.tar.gz bcm5719-llvm-b402580616617a5c2d80f3d1c343b8f74bd7c3b5.zip | |
Fix some handling of AST nodes with diagnostics.
The diagnostic system for Clang can already handle many AST nodes. Instead
of converting them to strings first, just hand the AST node directly to
the diagnostic system and let it handle the output. Minor changes in some
diagnostic output.
llvm-svn: 328688
Diffstat (limited to 'clang/test/SemaCUDA')
| -rw-r--r-- | clang/test/SemaCUDA/function-overload.cu | 4 | ||||
| -rw-r--r-- | clang/test/SemaCUDA/kernel-call.cu | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/SemaCUDA/function-overload.cu b/clang/test/SemaCUDA/function-overload.cu index adf488b5eea..1d78636a708 100644 --- a/clang/test/SemaCUDA/function-overload.cu +++ b/clang/test/SemaCUDA/function-overload.cu @@ -119,7 +119,7 @@ __host__ void hostf() { HostReturnTy ret_cdh = cdh(); GlobalFnPtr fp_g = g; - g(); // expected-error {{call to global function g not configured}} + g(); // expected-error {{call to global function 'g' not configured}} g<<<0, 0>>>(); } @@ -202,7 +202,7 @@ __host__ __device__ void hostdevicef() { #if defined (__CUDA_ARCH__) // expected-error@-2 {{reference to __global__ function 'g' in __host__ __device__ function}} #else - // expected-error@-4 {{call to global function g not configured}} + // expected-error@-4 {{call to global function 'g' not configured}} #endif g<<<0,0>>>(); diff --git a/clang/test/SemaCUDA/kernel-call.cu b/clang/test/SemaCUDA/kernel-call.cu index 47d7762f59e..b2433c956e2 100644 --- a/clang/test/SemaCUDA/kernel-call.cu +++ b/clang/test/SemaCUDA/kernel-call.cu @@ -13,13 +13,13 @@ int h2(int x) { return 1; } int main(void) { g1<<<1, 1>>>(42); - g1(42); // expected-error {{call to global function g1 not configured}} + g1(42); // expected-error {{call to global function 'g1' not configured}} g1<<<1>>>(42); // expected-error {{too few execution configuration arguments to kernel function call}} g1<<<1, 1, 0, 0, 0>>>(42); // expected-error {{too many execution configuration arguments to kernel function call}} t1(1); - h1<<<1, 1>>>(42); // expected-error {{kernel call to non-global function h1}} + h1<<<1, 1>>>(42); // expected-error {{kernel call to non-global function 'h1'}} int (*fp)(int) = h2; fp<<<1, 1>>>(42); // expected-error {{must have void return type}} |

