Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bitcode] round up value type size for slot calculation (#13009)
[2018-10] [bitcode] round up value type size for slot calculation consider ```csharp struct S3 { public ushort X; public ushort Y; public ushort Z; } ``` this would be 3 * 2 = 6 bytes. Structs, however, are passed around as i32 arrays in LLVM IR between functions. Those, if such a struct is passed, are split to `int32`s depending on the struct's size. The previous calulation was wrongly reserving one such i32 slot instead of two for `S3` above. Additionally increase slot size to i64 so that it aligns with a slightly different ABI on arm64_32. Fixes #8486 @rolfbjarne I've tested it on a arm64_32 device, please confirm that this fixes the issue on your armv7k device as well Backport of #12992. /cc @lewurm
- Loading branch information