================
@@ -1201,7 +1201,7 @@ def StackAddress : Builtin {
def ClearCache : Builtin {
let Spellings = ["__builtin___clear_cache"];
- let Attributes = [NoThrow];
+ let Attributes = [NoThrow, NoAddressSpaceRewrite];
----------------
arsenm wrote:
I think adding a new modifier is probably the wrong thing to do. This is an
entire class of problem that exists because OpenCL didn't implement the private
address space correctly from the beginning. The language mode changes what the
default address space is, instead of implicitly treating pointers as
opencl_private
https://github.com/llvm/llvm-project/pull/218642
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits