diff options
author | Juneyoung Lee <aqjune@gmail.com> | 2020-08-26 22:06:36 +0900 |
---|---|---|
committer | Juneyoung Lee <aqjune@gmail.com> | 2020-08-27 06:19:28 +0900 |
commit | 24dd04116db34e97271a520b6ab2397c67c627cb (patch) | |
tree | 9407990cab59960784d87892ea2a649acfa7f515 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5fbfe2ec4f8baf6a4729f9dc2e4fe16f269921eb (diff) | |
download | llvm-24dd04116db34e97271a520b6ab2397c67c627cb.zip llvm-24dd04116db34e97271a520b6ab2397c67c627cb.tar.gz llvm-24dd04116db34e97271a520b6ab2397c67c627cb.tar.bz2 |
[LangRef] Memset/memcpy/memmove can take undef/poison pointer if the size is 0
According to the current LangRef, Memset/memcpy/memmove can take a
null/dangling pointer if the size is zero.
(Relevant thread: http://lists.llvm.org/pipermail/llvm-dev/2017-July/115665.html )
This patch expands it and allows the functions to take undef/poison pointers
too.
This required the updates in the align attribute since it isn't specified
what is the alignment of undef/poison pointers.
This patch states that their alignment is 1.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D86643
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions