[llvm] r216973 - BumpPtrAllocator: use uintptr_t when aligning addresses to avoid undefined behaviour

Hans Wennborg hans at chromium.org
Wed Sep 3 09:40:08 PDT 2014


On Tue, Sep 2, 2014 at 7:13 PM, Nick Kledzik <kledzik at apple.com> wrote:
>
> On Sep 2, 2014, at 2:51 PM, Hans Wennborg <hans at hanshq.net> wrote:
>
>> Author: hans
>> Date: Tue Sep  2 16:51:35 2014
>> New Revision: 216973
>
> This causes warnings for me because you have two local variables named “AlignedAddr”.   [-Wshadow]

I think this will get fixed in the patch proposed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140901/233553.html

 - Hans




More information about the llvm-commits mailing list