[llvm-commits] [PATCH] Fix undefined behavior in APInt

Ahmed Charles ahmedcharles at gmail.com
Fri Feb 24 02:33:26 PST 2012


APInt currently executes UB in the lshr function which is intended to
result in a 0 value when shifted by more than the number of total
bits, but this isn't done in a conforming way. It seems like the
original code had this in mind, but got the check wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Fix-undefined-behavior.patch
Type: application/octet-stream
Size: 789 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120224/0ba11126/attachment.obj>


More information about the llvm-commits mailing list