Issue |
120709
|
Summary |
[libc] Suspected strict aliasing violation in string_length_wide_read
|
Labels |
libc
|
Assignees |
|
Reporter |
Voultapher
|
The following code in libc:
https://github.com/llvm/llvm-project/blob/b41240be6b9e58687011b2bd1b942c6625cbb5ad/libc/src/string/string_utils.h#L65
invokes what I understand to be strict aliasing UB. I think block reads would have to go through `memcpy`/`__builtin_memcpy` which can then be optimized by the compiler as appropriate.
Tagging @michaelrj-google.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs