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

John McCall rjmccall at apple.com
Tue Aug 21 11:30:57 PDT 2012


On Aug 21, 2012, at 11:20 AM, Richard Smith wrote:
> Thanks, r162297.
> 
> Is there a reason why llvm::RoundUpToAlignment uses a divide and a multiply, rather than an and? (Is it trying to handle non-power-of-two alignments?)

Probably.  It should still check for power-of-2-ness and fast-path it.

John.



More information about the cfe-commits mailing list