[JITLink] Use memset instead of bzero.

llvm-svn: 358822
This commit is contained in:
Lang Hames 2019-04-20 17:49:58 +00:00
parent 3211b44751
commit b39109585a
1 changed files with 2 additions and 2 deletions

View File

@ -216,8 +216,8 @@ InProcessMemoryManager::allocate(const SegmentsRequestMap &Request) {
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);