[libcxx-commits] [PATCH] D93339: [libc++abi] Remove redundant null pointer check in operator delete
Fangrui Song via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Dec 16 13:29:49 PST 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGef74f0fdc339: [libc++abi] Remove redundant null pointer check in operator delete (authored by MaskRay).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93339/new/
https://reviews.llvm.org/D93339
Files:
libcxxabi/src/stdlib_new_delete.cpp
Index: libcxxabi/src/stdlib_new_delete.cpp
===================================================================
--- libcxxabi/src/stdlib_new_delete.cpp
+++ libcxxabi/src/stdlib_new_delete.cpp
@@ -93,8 +93,7 @@
void
operator delete(void* ptr) _NOEXCEPT
{
- if (ptr)
- ::free(ptr);
+ ::free(ptr);
}
_LIBCXXABI_WEAK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93339.312293.patch
Type: text/x-patch
Size: 332 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201216/f06644b5/attachment.bin>
More information about the libcxx-commits
mailing list