[llvm] r374409 - Fix buildbots by using memset instead of bzero.

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 11:11:49 PDT 2019


Author: gclayton
Date: Thu Oct 10 11:11:49 2019
New Revision: 374409

URL: http://llvm.org/viewvc/llvm-project?rev=374409&view=rev
Log:
Fix buildbots by using memset instead of bzero.


Modified:
    llvm/trunk/lib/DebugInfo/GSYM/GsymCreator.cpp

Modified: llvm/trunk/lib/DebugInfo/GSYM/GsymCreator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/GSYM/GsymCreator.cpp?rev=374409&r1=374408&r2=374409&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/GSYM/GsymCreator.cpp (original)
+++ llvm/trunk/lib/DebugInfo/GSYM/GsymCreator.cpp Thu Oct 10 11:11:49 2019
@@ -73,7 +73,7 @@ llvm::Error GsymCreator::encode(FileWrit
   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());




More information about the llvm-commits mailing list