[llvm] r358822 - [JITLink] Use memset instead of bzero.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 20 10:49:58 PDT 2019
Author: lhames
Date: Sat Apr 20 10:49:58 2019
New Revision: 358822
URL: http://llvm.org/viewvc/llvm-project?rev=358822&view=rev
Log:
[JITLink] Use memset instead of bzero.
Modified:
llvm/trunk/lib/ExecutionEngine/JITLink/JITLink.cpp
Modified: llvm/trunk/lib/ExecutionEngine/JITLink/JITLink.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JITLink/JITLink.cpp?rev=358822&r1=358821&r2=358822&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JITLink/JITLink.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JITLink/JITLink.cpp Sat Apr 20 10:49:58 2019
@@ -216,8 +216,8 @@ InProcessMemoryManager::allocate(const S
return errorCodeToError(EC);
// Zero out the zero-fill memory.
- bzero(static_cast<char *>(SegMem.base()) + ZeroFillStart,
- Seg.getZeroFillSize());
+ memset(static_cast<char *>(SegMem.base()) + ZeroFillStart, 0,
+ Seg.getZeroFillSize());
// Record the block for this segment.
Blocks[KV.first] = std::move(SegMem);
More information about the llvm-commits
mailing list