]> granicus.if.org Git - llvm/commitdiff
Fix buildbots by using memset instead of bzero.
authorGreg Clayton <clayborg@gmail.com>
Thu, 10 Oct 2019 18:11:49 +0000 (18:11 +0000)
committerGreg Clayton <clayborg@gmail.com>
Thu, 10 Oct 2019 18:11:49 +0000 (18:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374409 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/GSYM/GsymCreator.cpp

index 9dc632dfcfbf908ba18be2cc49c4206ada2cb686..cf9ec32da8d444d74a725c92f889b3ac23008b22 100644 (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());