[all-commits] [llvm/llvm-project] a4e181: [objc_direct] fix uniquing when re-declaring a rea...

Pierre Habouzit via All-commits all-commits at lists.llvm.org
Tue Dec 17 11:08:13 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a4e1819c16836dba928e646024a2406bb2eb3f94
      https://github.com/llvm/llvm-project/commit/a4e1819c16836dba928e646024a2406bb2eb3f94
  Author: Pierre Habouzit <phabouzit at apple.com>
  Date:   2019-12-17 (Tue, 17 Dec 2019)

  Changed paths:
    M clang/lib/AST/DeclObjC.cpp
    M clang/test/CodeGenObjC/direct-method.m

  Log Message:
  -----------
  [objc_direct] fix uniquing when re-declaring a readwrite-direct property

ObjCMethodDecl::getCanonicalDecl() for re-declared readwrite properties,
only looks in the ObjCInterface for the declaration of the setter
method, which it won't find.

When the method is a property accessor, we must look in extensions for a
possible redeclaration.

Radar-Id: rdar://problem/57991337

Differential Revision: https://reviews.llvm.org/D71588




More information about the All-commits mailing list