[llvm-commits] [llvm] r43086 - /llvm/trunk/include/llvm/Support/AlignOf.h

Chris Lattner clattner at apple.com
Wed Oct 17 15:10:42 PDT 2007


On Oct 17, 2007, at 1:56 PM, Ted Kremenek wrote:

> Author: kremenek
> Date: Wed Oct 17 15:56:47 2007
> New Revision: 43086
>
> URL: http://llvm.org/viewvc/llvm-project?rev=43086&view=rev
> Log:
> Added llvm::AlignOf, a template class whose purpose is to portably
> compute the minimum memory alignment of arbitrary types.

Thanks!

> +#ifndef LLVM_SUPPORT_ALIGNOF_H
> +#define LLVM_SUPPORT_ALIGNOF_H
> +
> +#include <cassert>

No need for cassert anymore :)

-Chris




More information about the llvm-commits mailing list