| Issue |
179803
|
| Summary |
[libc++] atomic_ref constructors should use `is_sufficiently_aligned` instead of reinterpret_casting
|
| Labels |
libc++
|
| Assignees |
|
| Reporter |
philnik777
|
Currently we just have a `reinterpret_cast<uintptr_t>(ptr) % required_alignment == 0`. We should replace that with `is_sufficiently_aligned` (or an internal version) to make the code more readable and make it simpler to modify how we check alignment if we ever need to (e.g. for `constexpr` code).
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs