Fix an LLVM assertion on structs with unaligned size. Fixes #14217.