r297702 - [CodeGen][ObjC] Fix a bug where the type of an ivar wasn't encoded
Akira Hatanaka via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 1 17:58:41 PDT 2017
It crashes when there is an anonymous ivar of a bitfield type.
@interface FormatScanner {
int : 1;
}
@end
@implementation FormatScanner
@end
I'm not sure if the code above is valid or not, but out of curiosity, why would you want an anonymous bitfield variable?
> On Jun 1, 2017, at 11:33 AM, Joerg Sonnenberger <joerg at bec.de> wrote:
>
> On Tue, Mar 14, 2017 at 04:00:53AM -0000, Akira Hatanaka via cfe-commits wrote:
>> Author: ahatanak
>> Date: Mon Mar 13 23:00:52 2017
>> New Revision: 297702
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=297702&view=rev
>> Log:
>> [CodeGen][ObjC] Fix a bug where the type of an ivar wasn't encoded
>> correctly.
>
> This results in asserts on the attached test case. Can you have a look,
> please?
>
> Joerg
> <FormatScanner.m>
More information about the cfe-commits
mailing list