aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJake Egan <Jake.egan@ibm.com>2024-06-03 16:23:08 -0400
committerGitHub <noreply@github.com>2024-06-03 16:23:08 -0400
commit037a0528bbb4606388fb0805c34a413abbedea13 (patch)
treee32b5cb271066572e9bfc038a825d19bd9f653f8 /clang/lib/CodeGen/CodeGenModule.cpp
parent6ef632ad36c522b03cf03c7dd76184a35d3b7f41 (diff)
downloadllvm-037a0528bbb4606388fb0805c34a413abbedea13.zip
llvm-037a0528bbb4606388fb0805c34a413abbedea13.tar.gz
llvm-037a0528bbb4606388fb0805c34a413abbedea13.tar.bz2
[libc++] Handle 0 size case for testing support operator new (#93834)
The return of malloc is implementation defined when the requested size is 0. On platforms (such as AIX) that return a null pointer for 0 size, operator new will throw a bad_alloc exception. operator new should return a non null pointer for 0 size instead.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions