r309058 - [CodeGen] Correctly model std::byte's aliasing properties

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 26 09:36:37 PDT 2017


r309135. Thanks!

On Wed, Jul 26, 2017 at 9:29 AM, Richard Smith <richard at metafoo.co.uk> wrote:
> I think so too :)
>
> On 26 Jul 2017 9:23 am, "Hans Wennborg via cfe-commits"
> <cfe-commits at lists.llvm.org> wrote:
>
> Yes, I think so. Richard, what say you?
>
> On Tue, Jul 25, 2017 at 4:41 PM, David Majnemer via cfe-commits
> <cfe-commits at lists.llvm.org> wrote:
>> Should this go into 5.0 ?
>>
>> On Tue, Jul 25, 2017 at 4:33 PM, David Majnemer via cfe-commits
>> <cfe-commits at lists.llvm.org> wrote:
>>>
>>> Author: majnemer
>>> Date: Tue Jul 25 16:33:58 2017
>>> New Revision: 309058
>>>
>>> URL: http://llvm.org/viewvc/llvm-project?rev=309058&view=rev
>>> Log:
>>> [CodeGen] Correctly model std::byte's aliasing properties
>>>
>>> std::byte, when defined as an enum, needs to be given special treatment
>>> with regards to its aliasing properties. An array of std::byte is
>>> allowed to be used as storage for other types.
>>>
>>> This fixes PR33916.
>>>
>>> Differential Revision: https://reviews.llvm.org/D35824
>>>
>>> Added:
>>>     cfe/trunk/test/CodeGenCXX/std-byte.cpp
>>> Modified:
>>>     cfe/trunk/include/clang/AST/Type.h
>>>     cfe/trunk/lib/AST/Type.cpp
>>>     cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
>


More information about the cfe-commits mailing list