summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit668beb2cd62dd5d884277d8c34cfb099cb17954a (patch)
tree0a96d537a08a826d354f8f9f252683ba9356b2d2 /llvm/lib
parent123a52735d44471e9bb01d74d39b3b5ce355d948 (diff)
downloadbcm5719-llvm-668beb2cd62dd5d884277d8c34cfb099cb17954a.tar.gz
bcm5719-llvm-668beb2cd62dd5d884277d8c34cfb099cb17954a.zip
[ObjectYAML] filetype is a required field in MachO headers
Not sure how I managed to copy-pasta this wrong, but I did. llvm-svn: 269317
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ObjectYAML/MachOYAML.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ObjectYAML/MachOYAML.cpp b/llvm/lib/ObjectYAML/MachOYAML.cpp
index 0ef716047c8..c33f54f9c50 100644
--- a/llvm/lib/ObjectYAML/MachOYAML.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud