[CodeGen][ObjC] Push the properties of a protocol before pushing the
authorAkira Hatanaka <ahatanaka@apple.com>
Sat, 4 Jan 2020 16:32:49 +0000 (08:32 -0800)
committerAkira Hatanaka <ahatanaka@apple.com>
Tue, 7 Jan 2020 00:16:02 +0000 (16:16 -0800)
commit20f005d25f488fa1dc69d6792700e014c6a5d165
treeefe1419ea8d1016dbd232c7d6215ac837c72f398
parent7ba4595c86be88bf9ebb7261ba49ed4626e5f585
[CodeGen][ObjC] Push the properties of a protocol before pushing the
properties of the protocol it inherits

This fixes a bug where the type string for a @dynamic property of an
@implementation didn't have 'D' in it when the protocol it conforms to
redeclares the property declared in the base protocol.

rdar://problem/45503561
clang/lib/CodeGen/CGObjCMac.cpp
clang/test/CodeGenObjC/encode-test-2.m