From 623c8f7aa63332e4c73c61d2157cb7f358042d74 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Sun, 28 Jun 2026 03:34:22 -0700 Subject: [PATCH] [SYCL][Test] Fix address-space-parameter-conversions after opencl_global deprecation 84c42fe09e05 deprecated opencl_global_device and opencl_global_host, causing unexpected warnings in the verify test. Delete uses in the test. CMPLRLLVM-76496 Co-Authored-By: Claude Sonnet 4.6 --- .../address-space-parameter-conversions.cpp | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/clang/test/SemaSYCL/address-space-parameter-conversions.cpp b/clang/test/SemaSYCL/address-space-parameter-conversions.cpp index af3815d3832cc..f037244d7cfc5 100644 --- a/clang/test/SemaSYCL/address-space-parameter-conversions.cpp +++ b/clang/test/SemaSYCL/address-space-parameter-conversions.cpp @@ -14,8 +14,6 @@ void tmpl(T *t){} void usages() { __attribute__((opencl_global)) int *GLOB; - __attribute__((opencl_global_device)) int *GLOBDEV; - __attribute__((opencl_global_host)) int *GLOBHOST; __attribute__((opencl_private)) int *PRIV; __attribute__((opencl_local)) int *LOC; int *NoAS; @@ -23,13 +21,6 @@ void usages() { bar(*GLOB); bar2(*GLOB); - bar(*GLOBDEV); - bar2(*GLOBDEV); - bar3(*GLOBDEV); - - bar(*GLOBHOST); - bar2(*GLOBHOST); - bar3(*GLOBHOST); bar(*PRIV); bar2(*PRIV); @@ -42,12 +33,6 @@ void usages() { foo(GLOB); foo2(GLOB); - foo(GLOBDEV); - foo2(GLOBDEV); - foo3(GLOBDEV); - foo(GLOBDEV); - foo2(GLOBHOST); - foo3(GLOBHOST); foo(PRIV); foo2(PRIV); foo(NoAS); @@ -56,18 +41,12 @@ void usages() { foo2(LOC); tmpl(GLOB); - tmpl(GLOBDEV); - tmpl(GLOBHOST); tmpl(PRIV); tmpl(NoAS); tmpl(LOC); (void)static_cast(GLOB); (void)static_cast(GLOB); - (void)static_cast(GLOBDEV); - (void)static_cast(GLOBDEV); - (void)static_cast(GLOBHOST); - (void)static_cast(GLOBHOST); // FIXME: determine if we can warn on the below conversions. int *i = GLOB; void *v = GLOB;