[llvm] r269645 - macho2yaml.cpp: Fix "reserved" uninitialized.
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Mon May 16 04:03:57 PDT 2016
Author: chapuni
Date: Mon May 16 06:03:56 2016
New Revision: 269645
URL: http://llvm.org/viewvc/llvm-project?rev=269645&view=rev
Log:
macho2yaml.cpp: Fix "reserved" uninitialized.
FIXME: It should reflect actual field.
Modified:
llvm/trunk/tools/obj2yaml/macho2yaml.cpp
Modified: llvm/trunk/tools/obj2yaml/macho2yaml.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/obj2yaml/macho2yaml.cpp?rev=269645&r1=269644&r2=269645&view=diff
==============================================================================
--- llvm/trunk/tools/obj2yaml/macho2yaml.cpp (original)
+++ llvm/trunk/tools/obj2yaml/macho2yaml.cpp Mon May 16 06:03:56 2016
@@ -33,6 +33,7 @@ Expected<std::unique_ptr<MachOYAML::Obje
Y->Header.ncmds = Obj.getHeader().ncmds;
Y->Header.sizeofcmds = Obj.getHeader().sizeofcmds;
Y->Header.flags = Obj.getHeader().flags;
+ Y->Header.reserved = 0;
for (auto load_command : Obj.load_commands()) {
auto LC = make_unique<MachOYAML::LoadCommand>();
More information about the llvm-commits
mailing list