On 21.08.2012, at 18:36, Jordan Rose <[email protected]> wrote:

> 
> On Aug 20, 2012, at 22:42 , Richard Smith <[email protected]> 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?

There is llvm::RoundUpToAlignment in MathExtras.h for this.

- Ben
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to