[PATCH] D52401: Remove redundant null pointer check in operator delete
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 22 22:24:04 PDT 2018
MaskRay updated this revision to Diff 166625.
MaskRay edited the summary of this revision.
MaskRay added a comment.
.
Repository:
rCXX libc++
https://reviews.llvm.org/D52401
Files:
src/new.cpp
Index: src/new.cpp
===================================================================
--- src/new.cpp
+++ src/new.cpp
@@ -135,8 +135,7 @@
void
operator delete(void* ptr) _NOEXCEPT
{
- if (ptr)
- ::free(ptr);
+ ::free(ptr);
}
_LIBCPP_WEAK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52401.166625.patch
Type: text/x-patch
Size: 259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180923/658a6fd8/attachment-0001.bin>
More information about the cfe-commits
mailing list