<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>+  // The frontend treats 'id' as a typedef to an ObjCObjectType,</div><div>+  // whereas 'id<protocol>' is treated as an ObjCPointerType. For the</div><div>+  // debug info, we want to emit 'id' in both cases.</div><div>+  QualType PointeeType = Ty->getPointeeType();</div><div>+  if (const ObjCObjectType *Obj = dyn_cast<ObjCObjectType>(PointeeType))</div><div>+    if (Obj->isObjCId() && (Obj->getNumProtocols() > 0)) {</div><div>+      return getOrCreateType(CGM.getContext().getObjCIdType(), Unit);</div><div>+    }</div><div><br></div><div>Please use <span style="color: rgb(49, 89, 93); font-family: Menlo; font-size: 11px;">isObjCQualifiedIdType</span><span style="color: rgb(49, 89, 93); font-family: Menlo; font-size: 11px;"> instead.</span></div><div><span style="color: rgb(49, 89, 93); font-family: Menlo; font-size: 11px;"><br></span></div><div><span style="color: rgb(49, 89, 93); font-family: Menlo; font-size: 11px;">- Fariborz</span></div><div><span style="color: rgb(49, 89, 93); font-family: Menlo; font-size: 11px;"><br></span></div><div><div>On Feb 20, 2013, at 3:20 PM, Adrian Prantl <<a href="mailto:aprantl@apple.com">aprantl@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi CFEes,<br><br>please review the following patch:<br><br>Emit the DIType for ObjC 'id<protocol>' as 'id' rather than objc_object* <br>Fix for <a href="rdar://problem/12601916">rdar://problem/12601916</a>.<br><br>The frontend treats 'id' as a typedef to an ObjCObjectType, <br>whereas 'id<protocol>' is treated as an ObjCPointerType. For the<br>debug info, we want to emit 'id' in both cases. <br><br>cheers,<br>Adrian<br><br><span><id-protocol-as-id.patch></span>_______________________________________________<br>cfe-commits mailing list<br><a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits<br></blockquote></div><br></body></html>