[llvm-commits] [PATCH] APInt::byteSwap always returns 0 for BitWidth > 64
Richard Smith
richard at metafoo.co.uk
Tue Nov 22 19:21:02 PST 2011
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?
Thanks,
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apint-byteswap.diff
Type: text/x-patch
Size: 3884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111123/9aecc057/attachment.bin>
More information about the llvm-commits
mailing list