On Aug 20, 2012, at 22:42 , Richard Smith <richard-llvm at metafoo.co.uk> wrote: > + ArrayIndexSize = (ArrayIndexSize + Align - 1) & ~(Align - 1); Yuck. Can we put this (and the other time in appears, during allocation) in a helper function in AlignOf.h?