r220727 - Objective-C ARC [qoi]. Issue diagnostic if __bridge casting

Jordan Rose jordan_rose at apple.com
Mon Oct 27 16:41:30 PDT 2014


> On Oct 27, 2014, at 16:32, jahanian <fjahanian at apple.com> wrote:
> 
> 
>> On Oct 27, 2014, at 4:22 PM, Jordan Rose <jordan_rose at apple.com> wrote:
>> 
>> What does maybeUndoReclaimObject do? Does that mean we previously treated this as a bridge at +1?
> 
> That is not I’m my patch. It shows up in the diff because of rearrangement. And there is comment on top of maybeUndoReclaimObject routine.
> (You can ask John M. about it).
> 
> - Fariborz

That seems very relevant to the content of this decision, including whether we've been leaking memory on previous OSs because people didn't know whether their CFArrays are +0 or +1. (The analyzer has assumed they're always +0.)

Jordan



More information about the cfe-commits mailing list