llvm::MaybeAlign::valueOrOne

For convenience, returns a valid alignment or 1 if undefined.

Synopsis

Declared in <llvm/Support/Alignment.h>

Align
valueOrOne() const;

Return Value

This struct is a compact representation of a valid (non-zero power of two) alignment. It is suitable for use as static global constants.