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

Richard Smith richard at metafoo.co.uk
Wed Nov 23 13:37:11 PST 2011


On Wed, November 23, 2011 20:01, Nick Lewycky wrote:
> On 11/22/2011 07:21 PM, Richard Smith wrote:
>> 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!

Thanks, in r145111.

Richard




More information about the llvm-commits mailing list