Skip to content

Commit af38d88

Browse files
committed
Fix typos spotted by code review, thank you!
1 parent 11774e5 commit af38d88

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

include/swift/ABI/Metadata.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2947,7 +2947,7 @@ struct swift_ptrauth_struct_context_descriptor(ContextDescriptor)
29472947
/// that are suppressed here, but that information is recorded in the
29482948
/// conditional suppressed protocols of the corresponding `GenericContext`.
29492949
const SuppressibleProtocolSet *
2950-
getSuppresssedProtocols() const;
2950+
getSuppressedProtocols() const;
29512951

29522952
/// Is this context part of a C-imported module?
29532953
bool isCImportedContext() const;
@@ -3302,7 +3302,7 @@ struct swift_ptrauth_struct_context_descriptor(OpaqueTypeDescriptor)
33023302
/// that are suppressed here, but that information is recorded in the
33033303
/// conditional suppressed protocols of the corresponding `GenericContext`.
33043304
const SuppressibleProtocolSet &
3305-
getSuppresssedProtocols() const {
3305+
getSuppressedProtocols() const {
33063306
assert(this->hasSuppressibleProtocols());
33073307
return
33083308
*this->template getTrailingObjects<SuppressibleProtocolSet>();
@@ -4458,7 +4458,7 @@ class swift_ptrauth_struct_context_descriptor(ClassDescriptor)
44584458
/// that are suppressed here, but that information is recorded in the
44594459
/// conditional suppressed protocols of the corresponding `GenericContext`.
44604460
const SuppressibleProtocolSet &
4461-
getSuppresssedProtocols() const {
4461+
getSuppressedProtocols() const {
44624462
assert(this->hasSuppressibleProtocols());
44634463
return
44644464
*this->template getTrailingObjects<SuppressibleProtocolSet>();
@@ -4616,7 +4616,7 @@ class swift_ptrauth_struct_context_descriptor(StructDescriptor)
46164616
/// that are suppressed here, but that information is recorded in the
46174617
/// conditional suppressed protocols of the corresponding `GenericContext`.
46184618
const SuppressibleProtocolSet &
4619-
getSuppresssedProtocols() const {
4619+
getSuppressedProtocols() const {
46204620
assert(this->hasSuppressibleProtocols());
46214621
return
46224622
*this->template getTrailingObjects<SuppressibleProtocolSet>();
@@ -4777,7 +4777,7 @@ class swift_ptrauth_struct_context_descriptor(EnumDescriptor)
47774777
/// that are suppressed here, but that information is recorded in the
47784778
/// conditional suppressed protocols of the corresponding `GenericContext`.
47794779
const SuppressibleProtocolSet &
4780-
getSuppresssedProtocols() const {
4780+
getSuppressedProtocols() const {
47814781
assert(this->hasSuppressibleProtocols());
47824782
return
47834783
*this->template getTrailingObjects<SuppressibleProtocolSet>();
@@ -4834,23 +4834,23 @@ TargetContextDescriptor<Runtime>::getGenericContext() const {
48344834

48354835
template<typename Runtime>
48364836
inline const SuppressibleProtocolSet *
4837-
TargetContextDescriptor<Runtime>::getSuppresssedProtocols() const {
4837+
TargetContextDescriptor<Runtime>::getSuppressedProtocols() const {
48384838
if (!this->hasSuppressibleProtocols())
48394839
return nullptr;
48404840

48414841
switch (getKind()) {
48424842
case ContextDescriptorKind::Class:
48434843
return &llvm::cast<TargetClassDescriptor<Runtime>>(this)
4844-
->getSuppresssedProtocols();
4844+
->getSuppressedProtocols();
48454845
case ContextDescriptorKind::Enum:
48464846
return &llvm::cast<TargetEnumDescriptor<Runtime>>(this)
4847-
->getSuppresssedProtocols();
4847+
->getSuppressedProtocols();
48484848
case ContextDescriptorKind::Struct:
48494849
return &llvm::cast<TargetStructDescriptor<Runtime>>(this)
4850-
->getSuppresssedProtocols();
4850+
->getSuppressedProtocols();
48514851
case ContextDescriptorKind::OpaqueType:
48524852
return &llvm::cast<TargetOpaqueTypeDescriptor<Runtime>>(this)
4853-
->getSuppresssedProtocols();
4853+
->getSuppressedProtocols();
48544854
default:
48554855
// We don't know about this kind of descriptor.
48564856
return nullptr;

stdlib/public/runtime/ProtocolConformance.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,7 @@ checkSuppressibleRequirementsStructural(const Metadata *type,
17291729
auto missing = suppressed - ignored;
17301730
if (!missing.empty()) {
17311731
return TYPE_LOOKUP_ERROR_FMT(
1732-
"existential type missing suppresible protocols %x",
1732+
"existential type missing suppressible protocols %x",
17331733
missing.rawBits());
17341734
}
17351735
}
@@ -1771,7 +1771,7 @@ checkSuppressibleRequirements(const Metadata *type,
17711771

17721772
// If this type has suppressed conformances, but we can't find them...
17731773
// bail out.
1774-
auto suppressedProtocols = contextDescriptor->getSuppresssedProtocols();
1774+
auto suppressedProtocols = contextDescriptor->getSuppressedProtocols();
17751775
if (!suppressedProtocols) {
17761776
return TYPE_LOOKUP_ERROR_FMT("unable to find suppressed protocols");
17771777
}

0 commit comments

Comments
 (0)