summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2019-04-20 17:49:58 +0000
committerLang Hames <lhames@gmail.com>2019-04-20 17:49:58 +0000
commitb39109585a05d70255bf8d034f2cd8bc849bf2d0 (patch)
tree6ddc14a39af711ee7c942b0c076cd68b4824d44e /llvm/lib/ExecutionEngine
parent3211b44751c95ecc947f6ed14727c3e2605ac9e6 (diff)
downloadbcm5719-llvm-b39109585a05d70255bf8d034f2cd8bc849bf2d0.tar.gz
bcm5719-llvm-b39109585a05d70255bf8d034f2cd8bc849bf2d0.zip
[JITLink] Use memset instead of bzero.
llvm-svn: 358822
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JITLink/JITLink.cpp4
1 files changed, 2 insertions, 2 deletions
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<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);
OpenPOWER on IntegriCloud