Skip to content

Commit 99dbbe4

Browse files
committed
AST: Promote BuiltinStoreRaw feature to baseline.
1 parent 8dad141 commit 99dbbe4

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ BASELINE_LANGUAGE_FEATURE(TypedThrows, 413, "Typed throws")
187187
CONDITIONALLY_SUPPRESSIBLE_LANGUAGE_FEATURE(OptionalIsolatedParameters, 420, "Optional isolated parameters")
188188
BASELINE_LANGUAGE_FEATURE(Extern, 0, "@_extern")
189189
BASELINE_LANGUAGE_FEATURE(ExpressionMacroDefaultArguments, 422, "Expression macro as caller-side default argument")
190-
LANGUAGE_FEATURE(BuiltinStoreRaw, 0, "Builtin.storeRaw")
190+
BASELINE_LANGUAGE_FEATURE(BuiltinStoreRaw, 0, "Builtin.storeRaw")
191191
BASELINE_LANGUAGE_FEATURE(BuiltinCreateTask, 0, "Builtin.createTask and Builtin.createDiscardingTask")
192192
SUPPRESSIBLE_LANGUAGE_FEATURE(AssociatedTypeImplements, 0, "@_implements on associated types")
193193
LANGUAGE_FEATURE(BuiltinAddressOfRawLayout, 0, "Builtin.addressOfRawLayout")

lib/AST/FeatureSet.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ static bool usesFeatureAssociatedTypeImplements(Decl *decl) {
175175
return isa<TypeDecl>(decl) && decl->getAttrs().hasAttribute<ImplementsAttr>();
176176
}
177177

178-
UNINTERESTING_FEATURE(BuiltinStoreRaw)
179178
UNINTERESTING_FEATURE(BuiltinAddressOfRawLayout)
180179

181180
// ----------------------------------------------------------------------------

stdlib/public/core/UnsafeRawPointer.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,11 +1404,7 @@ extension UnsafeMutableRawPointer {
14041404
public func storeBytes<T: BitwiseCopyable>(
14051405
of value: T, toByteOffset offset: Int = 0, as type: T.Type
14061406
) {
1407-
#if $BuiltinStoreRaw
14081407
Builtin.storeRaw(value, (self + offset)._rawValue)
1409-
#else
1410-
fatalError("Unsupported swift compiler!")
1411-
#endif
14121408
}
14131409

14141410
/// Stores the given value's bytes into raw memory at the specified offset.

0 commit comments

Comments
 (0)