forked from OSchip/llvm-project
macho2yaml.cpp: Fix "reserved" uninitialized.
FIXME: It should reflect actual field. llvm-svn: 269645
This commit is contained in:
parent
7d8412ff05
commit
68570b2042
|
@ -33,6 +33,7 @@ Expected<std::unique_ptr<MachOYAML::Object>> MachODumper::dump() {
|
|||
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>();
|
||||
|
|
Loading…
Reference in New Issue