[clang] [Clang] Allow all address spaces to be converted to the default (PR #112248)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 14 13:13:10 PDT 2024


================
@@ -721,7 +721,9 @@ class Qualifiers {
            // to implicitly cast into the default address space.
            (A == LangAS::Default &&
             (B == LangAS::cuda_constant || B == LangAS::cuda_device ||
-             B == LangAS::cuda_shared));
+             B == LangAS::cuda_shared)) ||
+           // Otherwise, assume the default address space is compatible.
+           (A == LangAS::Default);
----------------
arsenm wrote:

Default is kind of broken, at least for OpenCL. Should avoid attaching any behavior to it 

https://github.com/llvm/llvm-project/pull/112248


More information about the cfe-commits mailing list