[cfe-commits] [PATCH] Add -fobjc-direct-class-refs

Jonathan Schleifer js at webkeks.org
Thu Jul 19 05:33:58 PDT 2012


Hi John!

Anything wrong with that patch? I got no feedback at all, neither from you nor anybode else.
Could anybody tell me if this is correct and if so apply it? Because I already have the next patch ready ;).

Thanks!

--
Jonathan


Am 14.07.2012 um 12:02 schrieb Jonathan Schleifer:

> Am 12.07.2012 um 02:58 schrieb John McCall:
> 
>> I'd be fine with you adding a new predicate (allowsPointerArithmetic()) on ObjCRuntime for this, if you then change Sema to use it in all the appropriate places.  (You seem to have a good feel for how to do this.)  You should also add another predicate (isSubscriptPointerArithmetic()), with the invariant that it's only true if allowsPointerArithmetic() is, which Sema would use to decide how to interpret subscripting on ObjC pointers.
> 
> I implemented that now - please see the attached patch. I also added maintainer information for the ObjFW runtime.
> <subscripts.patch>
> --
> Jonathan





More information about the cfe-commits mailing list