OSDN Git Service

[objc_direct] do not add direct properties to the serialization array
authorPierre Habouzit <phabouzit@apple.com>
Wed, 22 Jan 2020 20:08:19 +0000 (12:08 -0800)
committerPierre Habouzit <phabouzit@apple.com>
Fri, 24 Jan 2020 06:39:47 +0000 (22:39 -0800)
commit52311d0483eecd60bdcc39dd3fb134f2412370f6
tree8152cf21fb6ce98a13d8ac31a6a614a2ce37176c
parent7596d3c50c4b265612d326369e2a015cf8c60801
[objc_direct] do not add direct properties to the serialization array

If we do, then the property_list_t length is wrong
and class_getProperty gets very sad.

Signed-off-by: Pierre Habouzit <phabouzit@apple.com>
Radar-Id: rdar://problem/58804805
Differential Revision: https://reviews.llvm.org/D73219
clang/lib/CodeGen/CGObjCMac.cpp
clang/test/CodeGenObjC/direct-properties.m [new file with mode: 0644]