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

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


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


More information about the cfe-commits mailing list