Patch for Bug 30413

Lobron, David via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 7 18:42:06 PST 2017


Hello clang developers,

I discovered a bug that affects Objective-C programs compiled with clang on Linux.  The current code was not emitting Objective-C class name metadata, which made it impossible for programs to do runtime type introspection.  I opened a bug report that describes the problem and provides a test program that reproduces it:

https://llvm.org/bugs/show_bug.cgi?id=30413

I've attached an svn-generated patch file: the patch changes one argument to the getObjCEncodingForTypeImpl function from false to true, so that Objective-C class names are encoded.  If this looks OK, it would be great if it could be added to the trunk.  Once that is done, the bug can of course be closed.

Thank you.

Sincerely,

David Lobron

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PatchForBug30413.patch
Type: application/octet-stream
Size: 593 bytes
Desc: PatchForBug30413.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170208/64150252/attachment.obj>


More information about the cfe-commits mailing list