Fix buildbots by using memset instead of bzero.

llvm-svn: 374409
This commit is contained in:
Greg Clayton 2019-10-10 18:11:49 +00:00
parent ffc83995de
commit d665bfcf7c
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ llvm::Error GsymCreator::encode(FileWriter &O) const {
Hdr.NumAddresses = static_cast<uint32_t>(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());