mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 16:16:11 +00:00

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.