From b39109585a05d70255bf8d034f2cd8bc849bf2d0 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sat, 20 Apr 2019 17:49:58 +0000 Subject: [JITLink] Use memset instead of bzero. llvm-svn: 358822 --- llvm/lib/ExecutionEngine/JITLink/JITLink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm') diff --git a/llvm/lib/ExecutionEngine/JITLink/JITLink.cpp b/llvm/lib/ExecutionEngine/JITLink/JITLink.cpp index 05901a1668b..38c786e2ea2 100644 --- a/llvm/lib/ExecutionEngine/JITLink/JITLink.cpp +++ b/llvm/lib/ExecutionEngine/JITLink/JITLink.cpp @@ -216,8 +216,8 @@ InProcessMemoryManager::allocate(const SegmentsRequestMap &Request) { return errorCodeToError(EC); // Zero out the zero-fill memory. - bzero(static_cast(SegMem.base()) + ZeroFillStart, - Seg.getZeroFillSize()); + memset(static_cast(SegMem.base()) + ZeroFillStart, 0, + Seg.getZeroFillSize()); // Record the block for this segment. Blocks[KV.first] = std::move(SegMem); -- cgit v1.2.3