[clang] [clang] Fix behavior of `__is_trivially_relocatable(volatile int)` (PR #77092)

Amirreza Ashouri via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 6 04:53:57 PST 2024


AMP999 wrote:

> I think I would like some more eyes on this, I don't know if it is obvious to me what it means to reallocate a volatile object.

"Both active [wg21.link/p1144](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p1144r9.html) and [wg21.link/p2786](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2786r3.pdf) proposals agree that if a type is trivially copyable then it is trivially relocatable; and that the trait ignores top-level cv-qualifiers.

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


More information about the cfe-commits mailing list