Skip to content

Commit 087ef34

Browse files
committed
[ObjCopy][NFC] Remove unneeded zero initialization
getNewMemBuffer has called memset. Reviewed By: alexander-shaposhnikov Differential Revision: https://reviews.llvm.org/D125833
1 parent 4739176 commit 087ef34

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/ObjCopy/MachO/MachOWriter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,6 @@ Error MachOWriter::write() {
651651
return createStringError(errc::not_enough_memory,
652652
"failed to allocate memory buffer of " +
653653
Twine::utohexstr(TotalSize) + " bytes");
654-
memset(Buf->getBufferStart(), 0, totalSize());
655654
writeHeader();
656655
writeLoadCommands();
657656
writeSections();

0 commit comments

Comments
 (0)