[cfe-commits] patch: add "suitably aligned" value to TargetInfo

Eli Friedman eli.friedman at gmail.com
Thu Dec 15 19:07:46 PST 2011

On Thu, Dec 15, 2011 at 6:49 PM, Nick Lewycky <nlewycky at google.com> wrote:
> The attached patch adds a method to Basic/TargetInfo to return the suitable
> alignment, above which any object is considered over-aligned. This value is
> also equal to the amount of alignment you're guaranteed to get out of malloc
> and equal to alignof(std::max_align_t).

Looks like some irrelevant whitespace changes snuck in.  I haven't
looked carefully at the values you've chosen for various targets, but
otherwise looks okay.  What are you planning on using this for?


More information about the cfe-commits mailing list