diff options
author | Mikhail R. Gadelha <mikhail@igalia.com> | 2023-04-20 20:30:23 -0300 |
---|---|---|
committer | Mikhail R. Gadelha <mikhail@igalia.com> | 2023-04-20 20:31:29 -0300 |
commit | ba38640b9901d239e32e12c6569f7364d00af922 (patch) | |
tree | cef3a4eb6b49711408294a15c01adcdcc04e5179 /llvm/lib/Demangle/MicrosoftDemangle.cpp | |
parent | 8704c3a31f6011ba43fc60bef7b3c9774b9e38d9 (diff) | |
download | llvm-ba38640b9901d239e32e12c6569f7364d00af922.zip llvm-ba38640b9901d239e32e12c6569f7364d00af922.tar.gz llvm-ba38640b9901d239e32e12c6569f7364d00af922.tar.bz2 |
[libc] Added checks to src and dest types in bit_cast
This patch adds assertions to prevent the compilation when we try to
bit cast a type that is not trivially copyable when using
__builtin_bit_cast, or when we try to bit cast a type that is not
trivially copyable and trivially constructable when using memcpy.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D148739
Diffstat (limited to 'llvm/lib/Demangle/MicrosoftDemangle.cpp')
0 files changed, 0 insertions, 0 deletions