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

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 26 09:29:30 PDT 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170726/02a7d38f/attachment.html>


More information about the cfe-commits mailing list