[cfe-commits] r162255 - in /cfe/trunk: include/clang/AST/ExprCXX.h lib/AST/ExprCXX.cpp
Benjamin Kramer
benny.kra at gmail.com
Tue Aug 21 09:53:11 PDT 2012
On 21.08.2012, at 18:36, 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?
There is llvm::RoundUpToAlignment in MathExtras.h for this.
- Ben
More information about the cfe-commits
mailing list