macho2yaml.cpp: Fix "reserved" uninitialized.

FIXME: It should reflect actual field.
llvm-svn: 269645
This commit is contained in:
NAKAMURA Takumi 2016-05-16 11:03:56 +00:00
parent 7d8412ff05
commit 68570b2042
1 changed files with 1 additions and 0 deletions

View File

@ -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>();