From: Greg Clayton Date: Thu, 10 Oct 2019 18:11:49 +0000 (+0000) Subject: Fix buildbots by using memset instead of bzero. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=482b699a51d43ca1eb7b0d2c83fd4c2a1aeb138a;p=llvm Fix buildbots by using memset instead of bzero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374409 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/DebugInfo/GSYM/GsymCreator.cpp b/lib/DebugInfo/GSYM/GsymCreator.cpp index 9dc632dfcfb..cf9ec32da8d 100644 --- a/lib/DebugInfo/GSYM/GsymCreator.cpp +++ b/lib/DebugInfo/GSYM/GsymCreator.cpp @@ -73,7 +73,7 @@ llvm::Error GsymCreator::encode(FileWriter &O) const { Hdr.NumAddresses = static_cast(Funcs.size()); Hdr.StrtabOffset = 0; // We will fix this up later. Hdr.StrtabOffset = 0; // We will fix this up later. - bzero(Hdr.UUID, sizeof(Hdr.UUID)); + memset(Hdr.UUID, 0, sizeof(Hdr.UUID)); if (UUID.size() > sizeof(Hdr.UUID)) return createStringError(std::errc::invalid_argument, "invalid UUID size %u", (uint32_t)UUID.size());