diff options
author | Fangrui Song <i@maskray.me> | 2020-12-16 13:29:40 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-12-16 13:29:40 -0800 |
commit | ef74f0fdc33909d0e29a8206debd73d7673791c6 (patch) | |
tree | 6e0cc97bfdd555555b35dcb359b4199f08dfce8b /llvm/lib/CodeGen/MachineCheckDebugify.cpp | |
parent | e728024808712ebfe072be8f7b5aeb6b1776dd2a (diff) | |
download | llvm-ef74f0fdc33909d0e29a8206debd73d7673791c6.zip llvm-ef74f0fdc33909d0e29a8206debd73d7673791c6.tar.gz llvm-ef74f0fdc33909d0e29a8206debd73d7673791c6.tar.bz2 |
[libc++abi] Remove redundant null pointer check in operator delete
Similar to D52401. Normally operator delete is defined in libc++abi
(LIBCPP_DISABLE_NEW_DELETE_DEFINITIONS is off by default).
C89 4.10.3.2 The free function
C99 7.20.3.2 The free function
C11 7.22.3.3 The free function
If ptr is a null pointer, no action shall occur.
free on MSDN:
If memblock is NULL, the pointer is ignored and free immediately returns.
Reviewed By: #libc_abi, ldionne
Differential Revision: https://reviews.llvm.org/D93339
Diffstat (limited to 'llvm/lib/CodeGen/MachineCheckDebugify.cpp')
0 files changed, 0 insertions, 0 deletions