summaryrefslogtreecommitdiff
path: root/lib/ObjectYAML/MachOYAML.cpp
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-05-12 17:53:01 +0000
committerChris Bieneman <beanz@apple.com>2016-05-12 17:53:01 +0000
commit8413a1552019ca2b0b5f792c0516a37a3eee13d7 (patch)
treed22dc3bb39f696b252d9f23fc6d945f5e69d8c30 /lib/ObjectYAML/MachOYAML.cpp
parentc86d47d6a3c017b3f848fcb489a6277eba9079bf (diff)
[ObjectYAML] filetype is a required field in MachO headers
Not sure how I managed to copy-pasta this wrong, but I did. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ObjectYAML/MachOYAML.cpp')
-rw-r--r--lib/ObjectYAML/MachOYAML.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ObjectYAML/MachOYAML.cpp b/lib/ObjectYAML/MachOYAML.cpp
index 0ef716047c8..c33f54f9c50 100644
--- a/lib/ObjectYAML/MachOYAML.cpp
+++ b/lib/ObjectYAML/MachOYAML.cpp
@@ -23,7 +23,7 @@ void MappingTraits<MachOYAML::FileHeader>::mapping(
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);