[GNU ObjC] Fix a regression listing methods twice.
authorDavid Chisnall <github@theravensnest.org>
Tue, 1 Dec 2020 09:48:25 +0000 (09:48 +0000)
committerDavid Chisnall <David.Chisnall@microsoft.com>
Tue, 1 Dec 2020 09:50:18 +0000 (09:50 +0000)
commitd1ed67037de6f3f44dc446784f74f0e02adec9b5
treefdab8ab5b1f6677905a2feef8830f781d8fe296e
parent82d9fb0ac19e6909a957d346a815d993774b2e98
[GNU ObjC] Fix a regression listing methods twice.

Methods synthesized from declared properties were being added to the
method lists twice.  This came from the change to list them in the
class's method list, which missed removing the place in CGObjCGNU that
added them again.

Reviewed By: lanza

Differential Revision: https://reviews.llvm.org/D91874
clang/lib/CodeGen/CGObjCGNU.cpp
clang/test/CodeGenObjC/gnu-method-only-once.m [new file with mode: 0644]