[PATCH] D151087: [Clang] Permit address space casts with 'reinterpret_cast' in C++
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 22 11:38:58 PDT 2023
rjmccall added a comment.
It's weird to have C-style casts that can't be done with any combination of named casts, so I think this makes some sense. I do think it should be limited to numbered address spaces of the same size, though, rather than basing it on whether we're in OpenCL mode. Target address spaces should not generally be forced into this rule.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151087/new/
https://reviews.llvm.org/D151087
More information about the cfe-commits
mailing list