hanchenye-llvm-project/libc/test
Guillaume Chatelet 7e7ecef980 [libc] Replace type punning with bit_cast
Although type punning is defined for union in C, it is UB in C++.
This patch introduces a bit_cast function to convert between types in a safe way.

This is necessary to get llvm-libc compile with GCC.
This patch is extracted from D119002.

Differential Revision: https://reviews.llvm.org/D119145
2022-02-08 20:45:59 +00:00
..
integration [libc] make the scudo integration test run 2021-08-20 17:51:11 +00:00
loader [libc][NFC] Remove dependecies on entrypoints from loader tests. 2021-12-13 19:29:29 +00:00
src [libc] Replace type punning with bit_cast 2022-02-08 20:45:59 +00:00
utils [libc] apply new lint rules 2021-12-07 10:49:47 -08:00
CMakeLists.txt [libc] Move the x86_64 syscall functions to OSUtil. 2021-12-22 21:48:57 +00:00
ErrnoSetterMatcher.h [libc][NFC] Move sys/mman entrypoints to the default build configs. 2022-01-11 16:51:10 +00:00