summaryrefslogtreecommitdiffstats
path: root/llvm/tools/yaml2obj/yaml2macho.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/yaml2obj/yaml2macho.cpp')
-rw-r--r--llvm/tools/yaml2obj/yaml2macho.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/tools/yaml2obj/yaml2macho.cpp b/llvm/tools/yaml2obj/yaml2macho.cpp
index 510f7609b75..7821e63cf88 100644
--- a/llvm/tools/yaml2obj/yaml2macho.cpp
+++ b/llvm/tools/yaml2obj/yaml2macho.cpp
@@ -32,10 +32,6 @@ public:
is64Bit = Obj.Header.magic == MachO::MH_MAGIC_64 ||
Obj.Header.magic == MachO::MH_CIGAM_64;
memset(reinterpret_cast<void *>(&Header), 0, sizeof(MachO::mach_header_64));
- assert((is64Bit || Obj.Header.reserved == 0xDEADBEEFu) &&
- "32-bit MachO has reserved in header");
- assert((!is64Bit || Obj.Header.reserved != 0xDEADBEEFu) &&
- "64-bit MachO has missing reserved in header");
}
Error writeMachO(raw_ostream &OS);
OpenPOWER on IntegriCloud