Skip to content

[objc_direct] also go through implementations when looking for clashes#960

Merged
MadCoder merged 1 commit intoapple/stable/20200108from
eng/PR-59332804-59782963
Mar 24, 2020
Merged

[objc_direct] also go through implementations when looking for clashes#960
MadCoder merged 1 commit intoapple/stable/20200108from
eng/PR-59332804-59782963

Conversation

@MadCoder
Copy link

Some methods are sometimes declared in the @implementation blocks which
can cause undiagnosed clashes.

Just write a checkObjCDirectMethodClashes() for this purpose.

Also make sure that "unavailable" selectors do not inherit
objc_direct_members.

Differential Revision: https://reviews.llvm.org/D76643
Signed-off-by: Pierre Habouzit phabouzit@apple.com
Radar-ID: rdar://problem/59332804, rdar://problem/59782963
(cherry picked from commit 20d704a)

Some methods are sometimes declared in the @implementation blocks which
can cause undiagnosed clashes.

Just write a checkObjCDirectMethodClashes() for this purpose.

Also make sure that "unavailable" selectors do not inherit
objc_direct_members.

Differential Revision: https://reviews.llvm.org/D76643
Signed-off-by: Pierre Habouzit <phabouzit@apple.com>
Radar-ID: rdar://problem/59332804, rdar://problem/59782963
(cherry picked from commit 20d704a)
@MadCoder
Copy link
Author

@swift-ci test macOS platform

@MadCoder MadCoder merged commit a270c87 into apple/stable/20200108 Mar 24, 2020
@MadCoder MadCoder deleted the eng/PR-59332804-59782963 branch March 24, 2020 05:32
swift-ci pushed a commit that referenced this pull request Dec 5, 2023
When all the large const offsets masked with the same value from bit-12 to bit-23.
Fold
  add     x8, x0, #2031, lsl #12
  add     x8, x8, #960
  ldr     x9, [x8, x8]
  ldr     x8, [x8, #2056]

into
  add     x8, x0, #2031, lsl #12
  ldr     x9, [x8, #960]
  ldr     x8, [x8, #3016]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant