[llvm-commits] [PATCH] APInt::byteSwap always returns 0 for BitWidth > 64

Nick Lewycky nicholas at mxc.ca
Wed Nov 23 12:01:32 PST 2011


On 11/22/2011 07:21 PM, Richard Smith wrote:
> Hi,
>
> The current implementation of APInt::byteSwap is broken for bit widths greater
> than 64. The attached patch fixes this. I've also switched algorithms for this
> case, since the previous one assumed a little-endian uint64_t.
>
> OK to commit?

Looks good, please commit!

Nick



More information about the llvm-commits mailing list