[Binary] Hard-code the alignment of the offloading binary
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 21 Jul 2022 13:25:43 +0000 (09:25 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Thu, 21 Jul 2022 13:28:26 +0000 (09:28 -0400)
commitbc33c2fa0c2a68a0431df0d825cc6df99a1883db
tree022f41bf4cf1d63c94fb7ef2ab7f568f67233d37
parent716ca2e3ef37c9aa9517216042653d8a88d76ecf
[Binary] Hard-code the alignment of the offloading binary

Summary:
We previously used `alignof` to get the necessary alignment of the
binary header. However this was different on 32-bit platforms and caused
a few tests to fail because of it. This patch just changes this to be a
hard-coded constant of 8.
llvm/include/llvm/Object/OffloadBinary.h