Skip to content

Commit 0ba0076

Browse files
committed
AST: Promote BuiltinAddressOfRawLayout to baseline.
1 parent 45f3e94 commit 0ba0076

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ BASELINE_LANGUAGE_FEATURE(ExpressionMacroDefaultArguments, 422, "Expression macr
190190
BASELINE_LANGUAGE_FEATURE(BuiltinStoreRaw, 0, "Builtin.storeRaw")
191191
BASELINE_LANGUAGE_FEATURE(BuiltinCreateTask, 0, "Builtin.createTask and Builtin.createDiscardingTask")
192192
BASELINE_LANGUAGE_FEATURE(AssociatedTypeImplements, 0, "@_implements on associated types")
193-
LANGUAGE_FEATURE(BuiltinAddressOfRawLayout, 0, "Builtin.addressOfRawLayout")
193+
BASELINE_LANGUAGE_FEATURE(BuiltinAddressOfRawLayout, 0, "Builtin.addressOfRawLayout")
194194
BASELINE_LANGUAGE_FEATURE(MoveOnlyPartialConsumption, 429, "Partial consumption of noncopyable values")
195195
BASELINE_LANGUAGE_FEATURE(BitwiseCopyable, 426, "BitwiseCopyable protocol")
196196
BASELINE_LANGUAGE_FEATURE(NoncopyableGenerics, 427, "Noncopyable generics")

lib/AST/FeatureSet.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ static bool usesFeatureSpecializeAttributeWithAvailability(Decl *decl) {
6363
return false;
6464
}
6565

66-
UNINTERESTING_FEATURE(BuiltinAddressOfRawLayout)
67-
6866
// ----------------------------------------------------------------------------
6967
// MARK: - Upcoming Features
7068
// ----------------------------------------------------------------------------

stdlib/public/Synchronization/Cell.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ internal struct _Cell<Value: ~Copyable>: ~Copyable {
2828
@_alwaysEmitIntoClient
2929
@_transparent
3030
internal var _rawAddress: Builtin.RawPointer {
31-
#if $BuiltinAddressOfRawLayout
3231
Builtin.addressOfRawLayout(self)
33-
#else
34-
fatalError()
35-
#endif
3632
}
3733

3834
@available(SwiftStdlib 6.0, *)

0 commit comments

Comments
 (0)