[cfe-commits] r162255 - in /cfe/trunk: include/clang/AST/ExprCXX.h lib/AST/ExprCXX.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Aug 21 09:52:56 PDT 2012


On Aug 21, 2012, at 9:36 AM, Jordan Rose <jordan_rose at apple.com> wrote:

> 
> 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?

MathExtras.h already has RoundUpToAlignment().

/jakob




More information about the cfe-commits mailing list