summaryrefslogtreecommitdiff
path: root/include/llvm/BinaryFormat/MachO.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/BinaryFormat/MachO.h')
-rw-r--r--include/llvm/BinaryFormat/MachO.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/BinaryFormat/MachO.h b/include/llvm/BinaryFormat/MachO.h
index 060fbe162ad2..c5294c76ebf7 100644
--- a/include/llvm/BinaryFormat/MachO.h
+++ b/include/llvm/BinaryFormat/MachO.h
@@ -1973,9 +1973,11 @@ const uint32_t PPC_THREAD_STATE_COUNT =
// Define a union of all load command structs
#define LOAD_COMMAND_STRUCT(LCStruct) LCStruct LCStruct##_data;
-union macho_load_command {
+LLVM_PACKED_START
+union alignas(4) macho_load_command {
#include "llvm/BinaryFormat/MachO.def"
};
+LLVM_PACKED_END
} // end namespace MachO
} // end namespace llvm