diff --git a/llvm/include/llvm/Object/OffloadBinary.h b/llvm/include/llvm/Object/OffloadBinary.h index 311e21f1e338..4bff91c4c930 100644 --- a/llvm/include/llvm/Object/OffloadBinary.h +++ b/llvm/include/llvm/Object/OffloadBinary.h @@ -80,7 +80,7 @@ public: /// Serialize the contents of \p File to a binary buffer to be read later. static std::unique_ptr write(const OffloadingImage &); - static uint64_t getAlignment() { return alignof(Header); } + static uint64_t getAlignment() { return 8; } ImageKind getImageKind() const { return TheEntry->TheImageKind; } OffloadKind getOffloadKind() const { return TheEntry->TheOffloadKind; }