Skip to content

Commit 8335ce5

Browse files
authored
Merge pull request #83474 from eeckstein/fix-address-of-property-feature
rename the feature AddressOfProperty to AddressOfProperty2
2 parents 5264dd5 + ec8dcc9 commit 8335ce5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ LANGUAGE_FEATURE(AlwaysInheritActorContext, 472, "@_inheritActorContext(always)"
268268
LANGUAGE_FEATURE(BuiltinSelect, 0, "Builtin.select")
269269
LANGUAGE_FEATURE(BuiltinInterleave, 0, "Builtin.interleave and Builtin.deinterleave")
270270
LANGUAGE_FEATURE(BuiltinVectorsExternC, 0, "Extern C support for Builtin vector types")
271-
LANGUAGE_FEATURE(AddressOfProperty, 0, "Builtin.unprotectedAddressOf properties")
271+
LANGUAGE_FEATURE(AddressOfProperty2, 0, "Builtin.unprotectedAddressOf properties")
272272
LANGUAGE_FEATURE(NonescapableAccessorOnTrivial, 0, "Support UnsafeMutablePointer.mutableSpan")
273273
BASELINE_LANGUAGE_FEATURE(LayoutPrespecialization, 0, "Layout pre-specialization")
274274
BASELINE_LANGUAGE_FEATURE(IsolatedDeinit, 371, "isolated deinit")

lib/AST/FeatureSet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ static bool usesFeatureDefaultIsolationPerFile(Decl *D) {
439439
UNINTERESTING_FEATURE(BuiltinSelect)
440440
UNINTERESTING_FEATURE(BuiltinInterleave)
441441
UNINTERESTING_FEATURE(BuiltinVectorsExternC)
442-
UNINTERESTING_FEATURE(AddressOfProperty)
442+
UNINTERESTING_FEATURE(AddressOfProperty2)
443443

444444
// ----------------------------------------------------------------------------
445445
// MARK: - FeatureSet

stdlib/public/core/InlineArray.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ extension InlineArray where Element: ~Copyable {
6969
@_alwaysEmitIntoClient
7070
@_transparent
7171
internal var _address: UnsafePointer<Element> {
72-
#if $AddressOfProperty
72+
#if $AddressOfProperty2
7373
unsafe UnsafePointer<Element>(Builtin.unprotectedAddressOfBorrow(_storage))
7474
#else
7575
unsafe UnsafePointer<Element>(Builtin.unprotectedAddressOfBorrow(self))
@@ -93,7 +93,7 @@ extension InlineArray where Element: ~Copyable {
9393
@_alwaysEmitIntoClient
9494
@_transparent
9595
internal var _protectedAddress: UnsafePointer<Element> {
96-
#if $AddressOfProperty
96+
#if $AddressOfProperty2
9797
unsafe UnsafePointer<Element>(Builtin.addressOfBorrow(_storage))
9898
#else
9999
unsafe UnsafePointer<Element>(Builtin.addressOfBorrow(self))
@@ -118,7 +118,7 @@ extension InlineArray where Element: ~Copyable {
118118
@_transparent
119119
internal var _mutableAddress: UnsafeMutablePointer<Element> {
120120
mutating get {
121-
#if $AddressOfProperty
121+
#if $AddressOfProperty2
122122
unsafe UnsafeMutablePointer<Element>(Builtin.unprotectedAddressOf(&_storage))
123123
#else
124124
unsafe UnsafeMutablePointer<Element>(Builtin.unprotectedAddressOf(&self))
@@ -149,7 +149,7 @@ extension InlineArray where Element: ~Copyable {
149149
@_transparent
150150
internal var _protectedMutableAddress: UnsafeMutablePointer<Element> {
151151
mutating get {
152-
#if $AddressOfProperty
152+
#if $AddressOfProperty2
153153
unsafe UnsafeMutablePointer<Element>(Builtin.addressof(&_storage))
154154
#else
155155
unsafe UnsafeMutablePointer<Element>(Builtin.addressof(&self))

0 commit comments

Comments
 (0)