jhuber6 added a comment.

In D151087#4360668 <https://reviews.llvm.org/D151087#4360668>, @arsenm wrote:

>> It would most likely invalid, but I'm not asserting that `clang` should be 
>> responsible for diagnosing misuse in these cases. Especially because in 
>> generic freestanding C++ we don't have any language options to suggest the 
>> actual semantics.
>
> If the pointer sizes don’t match I think it has to be rejected since it’s no 
> longer a pure bitcast

I don't think that's something we can diagnose here with just the address space 
number. it would require information from the underlying target for the 
expected pointer qualities to the address space.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151087/new/

https://reviews.llvm.org/D151087

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to