[all-commits] [llvm/llvm-project] d34214: [libc] Add and use 'cpp::launder' to guard placeme...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Fri Jun 27 12:34:54 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d34214a85e3b9b94c2ccc6d63f3592be7eca0c24
https://github.com/llvm/llvm-project/commit/d34214a85e3b9b94c2ccc6d63f3592be7eca0c24
Author: Joseph Huber <huberjn at outlook.com>
Date: 2025-06-27 (Fri, 27 Jun 2025)
Changed paths:
M libc/src/__support/CPP/new.h
M libc/src/__support/GPU/allocator.cpp
Log Message:
-----------
[libc] Add and use 'cpp::launder' to guard placement new (#146123)
Summary:
In the GPU allocator we reinterpret cast from a void pointer. We know
that an actual object was constructed there according to the C++ object
model, but to make it fully standards compliant we need to 'launder' it
to forward that information to the compiler. Add this function and call
it as appropriate.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list