[LLVMdev] Size/Alignment handling bug?
sabre at nondot.org
Thu Jul 1 12:35:02 PDT 2004
On Thu, 1 Jul 2004, Vladimir Prus wrote:
> I think there's possible bug in alignment handling. When getTypeInfo function
> in TargetData.cpp is called on:
> [100 x short]
> it always returns 200 as the size. However, if alignment for short is '4',
> then each array element should be aligned at 4-byte boundary, and the total
> size of the array is more like 400.
> For a while, I've made the attached local modification. Does it makes
Sounds good. Applied:
> P.S. It's a lot of fun writing codegen for a target which has no support
> for addressing/working with individual bytes ;-)
Yeah, no kidding! Thanks for the bug fixes in this area! :)
More information about the llvm-dev