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

Ahmed Charles ahmedcharles at gmail.com
Sat Feb 25 10:34:06 PST 2012


r151385

On Fri, Feb 24, 2012 at 8:18 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On Feb 24, 2012, at 2:33 AM, Ahmed Charles wrote:
>
>> 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.
>
> Makes sense, please do.
>
> -Chris
>



-- 
Ahmed Charles



More information about the llvm-commits mailing list