[PATCH] Emit the DIType for ObjC 'id<protocol>' as 'id' rather than objc_object* (fixes rdar://problem/12601916)

Eric Christopher echristo at gmail.com
Wed Feb 20 15:26:26 PST 2013


LGTM, you could probably just do metadata {{.*}}, metadata !"bad_carrier",
.... to get rid of some of your check lines.

Couple of stray whitespace changes that make dgregor grumpy though :)

-eric

On Wed, Feb 20, 2013 at 3:20 PM, Adrian Prantl <aprantl at apple.com> wrote:

> Hi CFEes,
>
> please review the following patch:
>
> Emit the DIType for ObjC 'id<protocol>' as 'id' rather than objc_object*
> Fix for rdar://problem/12601916.
>
> The frontend treats 'id' as a typedef to an ObjCObjectType,
> whereas 'id<protocol>' is treated as an ObjCPointerType. For the
> debug info, we want to emit 'id' in both cases.
>
> cheers,
> Adrian
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130220/ef05dc0e/attachment.html>


More information about the cfe-commits mailing list