[llvm] r269317 - [ObjectYAML] filetype is a required field in MachO headers
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Thu May 12 10:53:01 PDT 2016
Author: cbieneman
Date: Thu May 12 12:53:01 2016
New Revision: 269317
URL: http://llvm.org/viewvc/llvm-project?rev=269317&view=rev
Log:
[ObjectYAML] filetype is a required field in MachO headers
Not sure how I managed to copy-pasta this wrong, but I did.
Modified:
llvm/trunk/lib/ObjectYAML/MachOYAML.cpp
Modified: llvm/trunk/lib/ObjectYAML/MachOYAML.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ObjectYAML/MachOYAML.cpp?rev=269317&r1=269316&r2=269317&view=diff
==============================================================================
--- llvm/trunk/lib/ObjectYAML/MachOYAML.cpp (original)
+++ llvm/trunk/lib/ObjectYAML/MachOYAML.cpp Thu May 12 12:53:01 2016
@@ -23,7 +23,7 @@ void MappingTraits<MachOYAML::FileHeader
IO.mapRequired("magic", FileHdr.magic);
IO.mapRequired("cputype", FileHdr.cputype);
IO.mapRequired("cpusubtype", FileHdr.cpusubtype);
- IO.mapOptional("filetype", FileHdr.filetype);
+ IO.mapRequired("filetype", FileHdr.filetype);
IO.mapRequired("ncmds", FileHdr.ncmds);
IO.mapRequired("sizeofcmds", FileHdr.sizeofcmds);
IO.mapRequired("flags", FileHdr.flags);
More information about the llvm-commits
mailing list