[llvm] r269319 - [yaml2macho] Use memset instead of bzero
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Thu May 12 11:02:13 PDT 2016
Author: cbieneman
Date: Thu May 12 13:02:13 2016
New Revision: 269319
URL: http://llvm.org/viewvc/llvm-project?rev=269319&view=rev
Log:
[yaml2macho] Use memset instead of bzero
This should fix the bots I broke.
Modified:
llvm/trunk/tools/yaml2obj/yaml2macho.cpp
Modified: llvm/trunk/tools/yaml2obj/yaml2macho.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/yaml2obj/yaml2macho.cpp?rev=269319&r1=269318&r2=269319&view=diff
==============================================================================
--- llvm/trunk/tools/yaml2obj/yaml2macho.cpp (original)
+++ llvm/trunk/tools/yaml2obj/yaml2macho.cpp Thu May 12 13:02:13 2016
@@ -28,7 +28,8 @@ public:
MachOWriter(MachOYAML::Object &Obj) : Obj(Obj) {
is64Bit = Obj.Header.magic == MachO::MH_MAGIC_64 ||
Obj.Header.magic == MachO::MH_CIGAM_64;
- bzero(&Header64, sizeof(MachO::mach_header_64));
+ memset(reinterpret_cast<void *>(&Header64), 0,
+ sizeof(MachO::mach_header_64));
}
Error writeMachO(raw_ostream &OS);
More information about the llvm-commits
mailing list