Skip to content

Commit f8ae46b

Browse files
committed
[inclusive-language] changed sanity to soundness
1 parent 141b4d0 commit f8ae46b

File tree

78 files changed

+133
-133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+133
-133
lines changed

cmake/modules/SwiftXcodeSupport.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function(fix_imported_targets_for_xcode imported_targets)
8484
endif()
8585

8686
# First check that we actually imported the configuration that LLVM said
87-
# that we did. This is just a sanity check.
87+
# that we did. This is just a soundness check.
8888
check_imported_target_has_imported_configuration(${target} ${LLVM_BUILD_TYPE_UPPER})
8989

9090
# Then loop through all of the imported properties and translate.

docs/ContinuousIntegration.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ All supported platforms | @swift-ci Please clean test | Sw
8787
macOS platform | @swift-ci Please test macOS platform | Swift Test macOS Platform (smoke test)<br>Swift Test macOS Platform
8888
macOS platform | @swift-ci Please clean test macOS platform | Swift Test macOS Platform (smoke test)<br>Swift Test macOS Platform
8989
macOS platform | @swift-ci Please benchmark | Swift Benchmark on macOS Platform (many runs - rigorous)
90-
macOS platform | @swift-ci Please smoke benchmark | Swift Benchmark macOS Platform (few runs - sanity)
90+
macOS platform | @swift-ci Please smoke benchmark | Swift Benchmark macOS Platform (few runs - soundness)
9191
Linux platform | @swift-ci Please test Linux platform | Swift Test Linux Platform (smoke test)<br>Swift Test Linux Platform
9292
Linux platform | @swift-ci Please clean test Linux platform | Swift Test Linux Platform (smoke test)<br>Swift Test Linux Platform
9393
macOS platform | @swift-ci Please ASAN test | Swift ASAN Test macOS Platform
@@ -126,7 +126,7 @@ A validation test on Linux does the following:
126126
Platform | Comment | Check Status
127127
------------ | ------- | ------------
128128
macOS platform | @swift-ci Please benchmark | Swift Benchmark on macOS Platform (many runs - rigorous)
129-
macOS platform | @swift-ci Please smoke benchmark | Swift Benchmark on macOS Platform (few runs - sanity)
129+
macOS platform | @swift-ci Please smoke benchmark | Swift Benchmark on macOS Platform (few runs - soundness)
130130

131131
### Linting
132132

docs/StringDesign.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ programmers well; so, why does Swift have its own string type?
540540
* C strings had to stay around for performance reasons and
541541
interoperability
542542

543-
Want performance of C, sane semantics of C++ strings, and high-level
543+
Want performance of C, sound semantics of C++ strings, and high-level
544544
goodness of ObjC.
545545

546546
The design of ``NSString`` is *very* different from the string

docs/archive/LangRef.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ <h3 id="decl-struct">struct Declarations</h3>
490490
Structs do not support inheritance due to undesirable ripple effects across
491491
the design of the language. For example, method dispatch would arguably need
492492
to become virtual, not static. The storage of the type would arguably need
493-
to become indirected so that an array of T could be implemented sanely
493+
to become indirected so that an array of T could be implemented soundly
494494
(because we don't know if T is actually a T, or a subclass of T). We'd need
495495
to store the "isa"/vtable in the struct so that virtual method dispatch
496496
could be implemented, and this has additional storage costs. None of these

docs/proposals/rejected/ClassConstruction.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Objective-C's "designated initializers pattern seems at first to
1111
create a great deal of complication. However, designated initializers
12-
are simply the only sane response to Objective-C's initialization rules,
12+
are simply the only sound response to Objective-C's initialization rules,
1313
which are the root cause of the complication.
1414

1515
This proposal suggests an approach to initialization that avoids the

include/swift/Basic/UUID.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212
//
1313
// This is an interface over the standard OSF uuid library that gives UUIDs
14-
// sane value semantics and operators.
14+
// sound value semantics and operators.
1515
//
1616
//===----------------------------------------------------------------------===//
1717

include/swift/RemoteInspection/ReflectionContext.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ class ReflectionContext
11771177
bool projectEnumValue(RemoteAddress EnumAddress, const TypeRef *EnumTR,
11781178
int *CaseIndex,
11791179
remote::TypeInfoProvider *ExternalTypeInfo) {
1180-
// Get the TypeInfo and sanity-check it
1180+
// Get the TypeInfo and soundness-check it
11811181
if (EnumTR == nullptr) {
11821182
return false;
11831183
}

include/swift/RemoteInspection/TypeRefBuilder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ class TypeRefBuilder {
994994
return nullptr;
995995
}
996996

997-
// Sanity: Verify that the generic params per level add
997+
// Soundness: Verify that the generic params per level add
998998
// up exactly to the number of args we were provided, and
999999
// that we don't have a rediculous number of either one
10001000
auto genericParamsPerLevel = *maybeGenericParamsPerLevel;

include/swift/SIL/FieldSensitivePrunedLiveness.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ class FieldSensitivePrunedLivenessBoundary {
10461046
public:
10471047
FieldSensitivePrunedLivenessBoundary(unsigned numBits) : numBits(numBits) {}
10481048

1049-
/// Sanity check meant for NDEBUG mode.
1049+
/// Soundness check meant for NDEBUG mode.
10501050
unsigned getNumLastUsersAndDeadDefs(unsigned bitNo) const {
10511051
#ifdef NDEBUG
10521052
llvm_unreachable("Only call in asserts build!\n");

lib/AST/ASTContext.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2204,7 +2204,7 @@ void OverriddenDeclsRequest::cacheResult(
22042204
if (value.empty())
22052205
return;
22062206

2207-
// Sanity-check the declarations we were given.
2207+
// Soundness-check the declarations we were given.
22082208
for (auto overriddenDecl : value) {
22092209
assert(overriddenDecl->getKind() == decl->getKind() &&
22102210
"Overridden decl kind mismatch");

lib/AST/Builtins.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Type swift::getBuiltinType(ASTContext &Context, StringRef Name) {
115115
if (Name.substr(0, 3) == "Int") {
116116
unsigned BitWidth;
117117
if (!Name.substr(3).getAsInteger(10, BitWidth) &&
118-
BitWidth <= 2048 && BitWidth != 0) // Cap to prevent insane things.
118+
BitWidth <= 2048 && BitWidth != 0) // Cap to prevent unsound things.
119119
return BuiltinIntegerType::get(BitWidth, Context);
120120
}
121121

lib/Basic/UUID.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212
//
1313
// This is an interface over the standard OSF uuid library that gives UUIDs
14-
// sane value semantics and operators.
14+
// sound value semantics and operators.
1515
//
1616
//===----------------------------------------------------------------------===//
1717

lib/ClangImporter/ImportDecl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -9338,7 +9338,7 @@ static void loadMembersOfBaseImportedFromClang(ExtensionDecl *ext) {
93389338
return;
93399339
base->loadAllMembers();
93409340

9341-
// Sanity check: make sure we don't jump over to a category /while/
9341+
// Soundness check: make sure we don't jump over to a category /while/
93429342
// loading the original class's members. Right now we only check if this
93439343
// happens on the first member.
93449344
if (auto *clangContainer = dyn_cast<clang::ObjCContainerDecl>(clangBase))

lib/ClangImporter/ImportType.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ ImportedType ClangImporter::Implementation::importType(
17041704
// separately, so it can provide fallbacks in certain cases. For Swift, we
17051705
// map the redefinition types back to the equivalent of the built-in types.
17061706
// This bans some trickery that the redefinition types enable, but is a more
1707-
// sane model overall.
1707+
// sound model overall.
17081708
auto &clangContext = getClangASTContext();
17091709
if (clangContext.getLangOpts().ObjC) {
17101710
if (clangContext.hasSameUnqualifiedType(

lib/IRGen/IRGenDebugInfo.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
467467
private:
468468

469469
#ifndef NDEBUG
470-
/// Perform a couple of sanity checks on scopes.
470+
/// Perform a couple of soundness checks on scopes.
471471
static bool parentScopesAreSane(const SILDebugScope *DS) {
472472
auto *Parent = DS;
473473
while ((Parent = Parent->Parent.dyn_cast<const SILDebugScope *>())) {
@@ -742,7 +742,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
742742
return DBuilder.getOrCreateTypeArray(Parameters);
743743
}
744744

745-
/// FIXME: replace this condition with something more sane.
745+
/// FIXME: replace this condition with something more sound.
746746
static bool isAllocatingConstructor(SILFunctionTypeRepresentation Rep,
747747
DeclContext *DeclCtx) {
748748
return Rep != SILFunctionTypeRepresentation::Method && DeclCtx &&
@@ -2135,7 +2135,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
21352135
// Incrementally build the DIRefMap.
21362136
if (auto *CTy = dyn_cast<llvm::DICompositeType>(DITy)) {
21372137
#ifndef NDEBUG
2138-
// Sanity check.
2138+
// Soundness check.
21392139
if (llvm::Metadata *V = DIRefMap.lookup(UID)) {
21402140
auto *CachedTy = cast<llvm::DIType>(V);
21412141
assert(CachedTy == DITy && "conflicting types for one UID");
@@ -2969,7 +2969,7 @@ void IRGenDebugInfoImpl::emitVariableDeclaration(
29692969
if (!AlignInBits)
29702970
AlignInBits = SizeOfByte;
29712971

2972-
// Sanity checks.
2972+
// Soundness checks.
29732973
#ifndef NDEBUG
29742974
assert(SizeInBits && "zero-sized piece");
29752975
if (getSizeInBits(Var)) {

lib/IRGen/IRGenModule.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static void checkPointerAuthAssociatedTypeDiscriminator(IRGenModule &IGM, ArrayR
190190
static void sanityCheckStdlib(IRGenModule &IGM) {
191191
if (!IGM.getSwiftModule()->isStdlibModule()) return;
192192

193-
// Only run the sanity check when we're building the real stdlib.
193+
// Only run the soundness check when we're building the real stdlib.
194194
if (!lookupSimple(IGM.getSwiftModule(), { "String" })) return;
195195

196196
if (!IGM.ObjCInterop) return;

lib/LLVMPasses/LLVMMergeFunctions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ class SwiftMergeFunctions {
463463
}
464464

465465
/// Checks the rules of order relation introduced among functions set.
466-
/// Returns true, if sanity check has been passed, and false if failed.
466+
/// Returns true, if soundness check has been passed, and false if failed.
467467
bool doSanityCheck(std::vector<WeakTrackingVH> &Worklist);
468468

469469
/// Updates the numUnhandledCallees of all user functions of the equivalence

lib/RemoteAST/RemoteAST.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ class RemoteASTContextImpl {
116116
unsigned ordinal) = 0;
117117
Result<uint64_t>
118118
getOffsetOfMember(Type type, RemoteAddress optMetadata, StringRef memberName){
119-
// Sanity check: obviously invalid arguments.
119+
// Soundness check: obviously invalid arguments.
120120
if (!type || memberName.empty())
121121
return Result<uint64_t>::emplaceFailure(Failure::BadArgument);
122122

123-
// Sanity check: if the caller gave us a dependent type, there's no way
123+
// Soundness check: if the caller gave us a dependent type, there's no way
124124
// we can handle that.
125125
if (type->hasTypeParameter() || type->hasArchetype())
126126
return Result<uint64_t>::emplaceFailure(Failure::DependentArgument);

lib/SILGen/LValue.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ class LValue {
428428
}
429429

430430
/// Pop the last component off this LValue unsafely. Validates that the
431-
/// component is of kind \p kind as a sanity check.
431+
/// component is of kind \p kind as a soundness check.
432432
///
433433
/// Please be careful when using this!
434434
void unsafelyDropLastComponent(PathComponent::KindTy kind) & {

lib/SILGen/SILGenLValue.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4259,7 +4259,7 @@ LValue SILGenLValue::visitOpenExistentialExpr(OpenExistentialExpr *e,
42594259
// Visit the subexpression.
42604260
LValue lv = visitRec(e->getSubExpr(), accessKind, options);
42614261

4262-
// Sanity check that we did see the OpaqueValueExpr.
4262+
// Soundness check that we did see the OpaqueValueExpr.
42634263
assert(SGF.OpaqueValueExprs.count(e->getOpaqueValue()) == 0 &&
42644264
"opened existential not removed?");
42654265
return lv;

lib/SILGen/SILGenType.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ class SILGenConformance : public SILGenWitnessTable<SILGenConformance> {
549549
wt->convertToDefinition(Entries, ConditionalConformances, Serialized);
550550

551551
// Since we had a declaration before, its linkage should be external,
552-
// ensure that we have a compatible linkage for sanity. *NOTE* we are ok
552+
// ensure that we have a compatible linkage for soundness. *NOTE* we are ok
553553
// with both being shared since we do not have a shared_external
554554
// linkage.
555555
assert(stripExternalFromLinkage(wt->getLinkage()) == Linkage &&

lib/SILOptimizer/Analysis/AccessSummaryAnalysis.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void AccessSummaryAnalysis::processArgument(FunctionInfo *info,
148148
}
149149

150150
#ifndef NDEBUG
151-
/// Sanity check to make sure that a noescape partial apply is only ultimately
151+
/// Soundness check to make sure that a noescape partial apply is only ultimately
152152
/// used by directly calling it or passing it as argument, but not using it as a
153153
/// partial_apply callee.
154154
///

lib/SILOptimizer/LoopTransforms/ArrayPropertyOpt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ class ArrayPropertiesAnalysis {
323323
return false;
324324
}
325325

326-
// Otherwise, all of our users are sane. The array does not escape.
326+
// Otherwise, all of our users are sound. The array does not escape.
327327
return true;
328328
}
329329

lib/SILOptimizer/Mandatory/DiagnoseStaticExclusivity.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ static void checkForViolationsAtInstruction(SILInstruction &I,
921921
return;
922922
}
923923

924-
// Sanity check to make sure entries are properly removed.
924+
// Soundness check to make sure entries are properly removed.
925925
assert((!isa<ReturnInst>(&I) || State.Accesses->empty())
926926
&& "Entries were not properly removed?!");
927927
}
@@ -936,7 +936,7 @@ static void checkStaticExclusivity(SILFunction &Fn, PostOrderFunctionInfo *PO,
936936
// accesses must have begun in the same order on all edges. This ensures
937937
// consistent diagnostics across changes to the exploration of the CFG.
938938
// - On return from a function there are no in-progress accesses. This
939-
// enables a sanity check for lean analysis state at function exit.
939+
// enables a soundness check for lean analysis state at function exit.
940940
// - Each end_access instruction corresponds to exactly one begin access
941941
// instruction. (This is encoded in the EndAccessInst itself)
942942
// - begin_access arguments cannot be basic block arguments.

lib/SILOptimizer/Mandatory/Differentiation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ emitDerivativeFunctionReference(
566566
diag::autodiff_external_nondifferentiable_function);
567567
return llvm::None;
568568
}
569-
// Sanity check passed. Create a new differentiability witness and
569+
// Soundness check passed. Create a new differentiability witness and
570570
// canonicalize it.
571571
GenericSignature contextualDerivativeGenSig = GenericSignature();
572572
if (invoker.getKind() ==

lib/SILOptimizer/Mandatory/MoveOnlyUtils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ bool siloptimizer::eliminateTemporaryAllocationsFromLet(
633633

634634
// Then check that our final use and initialCAI are in the same block and
635635
// that all instructions in between them with side-effects are instructions
636-
// that we visited. This is a sanity check.
636+
// that we visited. This is a soundness check.
637637
if (finalUse->getParentBlock() != initialCAI->getParent() ||
638638
llvm::any_of(llvm::make_range(initialCAI->getIterator(),
639639
finalUse->getUser()->getIterator()),

lib/SILOptimizer/Transforms/AccessEnforcementDom.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ bool DominatedAccessRemoval::checkDominatedAccess(
396396
// location as the key.
397397
//
398398
// Cast this DomAccessStorage back to a plain storage location. The
399-
// pass-specific bits will be ignored, but reset them anyway for sanity.
399+
// pass-specific bits will be ignored, but reset them anyway for soundness.
400400
AccessStorage storage = static_cast<AccessStorage>(currDomStorage);
401401
storage.resetSubclassData();
402402
auto iterAndInserted =

lib/SILOptimizer/Utils/CanonicalizeOSSALifetime.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ bool CanonicalizeOSSALifetime::computeLiveness() {
11641164
//
11651165
// NotifyWillBeDeleted will not work because copy rewriting removes operands
11661166
// before deleting instructions. Also prohibit setUse callbacks just because
1167-
// that would simply be insane.
1167+
// that would simply be unsound.
11681168
assert(!getCallbacks().notifyWillBeDeletedFunc
11691169
&& !getCallbacks().setUseValueFunc && "unsupported");
11701170

lib/Sema/AssociatedTypeInference.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ AssociatedTypeInference::inferTypeWitnessesViaValueWitnesses(
13961396

13971397
// Skip operator requirements, because they match globally and
13981398
// therefore tend to cause deduction mismatches.
1399-
// FIXME: If we had some basic sanity checking of Self, we might be able to
1399+
// FIXME: If we had some basic soundness checking of Self, we might be able to
14001400
// use these.
14011401
if (auto func = dyn_cast<FuncDecl>(req)) {
14021402
if (func->isOperator() || isa<AccessorDecl>(func))

lib/Sema/CSDiagnostics.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2008,7 +2008,7 @@ bool TrailingClosureAmbiguityFailure::diagnoseAsNote() {
20082008
const ParameterList *paramList = callee->getParameters();
20092009
const ParamDecl *param = paramList->getArray().back();
20102010

2011-
// Sanity-check that the trailing closure corresponds to this parameter.
2011+
// Soundness-check that the trailing closure corresponds to this parameter.
20122012
if (!param->hasInterfaceType() ||
20132013
!param->getInterfaceType()->is<AnyFunctionType>())
20142014
return false;

lib/Sema/CSRanking.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ SolutionCompareResult ConstraintSystem::compareSolutions(
13731373
// If either of the types still contains type variables, we can't
13741374
// compare them.
13751375
// FIXME: This is really unfortunate. More type variable sharing
1376-
// (when it's sane) would help us do much better here.
1376+
// (when it's sound) would help us do much better here.
13771377
if (type1->hasTypeVariable() || type2->hasTypeVariable()) {
13781378
identical = false;
13791379
continue;

lib/Sema/DebuggerTestingTransform.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ unsigned DiscriminatorFinder::getNextDiscriminator() {
5858

5959
namespace {
6060

61-
/// Instrument decls with sanity-checks which the debugger can evaluate.
61+
/// Instrument decls with soundness-checks which the debugger can evaluate.
6262
class DebuggerTestingTransform : public ASTWalker {
6363
ASTContext &Ctx;
6464
DiscriminatorFinder &DF;
@@ -309,7 +309,7 @@ void swift::performDebuggerTestingTransform(SourceFile &SF) {
309309
for (Decl *D : SF.getTopLevelDecls())
310310
D->walk(DF);
311311

312-
// Instrument the decls with checkExpect() sanity-checks.
312+
// Instrument the decls with checkExpect() soundness-checks.
313313
for (Decl *D : SF.getTopLevelDecls()) {
314314
DebuggerTestingTransform Transform{D->getASTContext(), DF};
315315
D->walk(Transform);

lib/Sema/TypeCheckAccess.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ class AccessControlChecker : public AccessControlCheckerBase,
877877
ty = superclass;
878878
return ty->getAnyNominal() == superclassDecl;
879879
});
880-
// Sanity check: we couldn't find the superclass for whatever reason
880+
// Soundness check: we couldn't find the superclass for whatever reason
881881
// (possibly because it's synthetic or something), so don't bother
882882
// checking it.
883883
if (superclassLocIter == inheritedEntries.end())
@@ -1611,7 +1611,7 @@ class UsableFromInlineChecker : public AccessControlCheckerBase,
16111611
ty = superclass;
16121612
return ty->getAnyNominal() == superclassDecl;
16131613
});
1614-
// Sanity check: we couldn't find the superclass for whatever reason
1614+
// Soundness check: we couldn't find the superclass for whatever reason
16151615
// (possibly because it's synthetic or something), so don't bother
16161616
// checking it.
16171617
if (superclassLocIter == inheritedEntries.end())

stdlib/public/Concurrency/TaskStatus.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ static void swift_taskGroup_attachChildImpl(TaskGroup *group,
803803
withStatusRecordLock(parent, [&](ActiveTaskStatus parentStatus) {
804804
group->addChildTask(child);
805805

806-
// After getting parent's status record lock, do some sanity checks to
806+
// After getting parent's status record lock, do some soundness checks to
807807
// see if parent task or group has state changes that need to be
808808
// propagated to the child.
809809
//

stdlib/public/RemoteInspection/TypeRefBuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ TypeRefBuilder::ReflectionTypeDescriptorFinder::getMultiPayloadEnumInfo(
590590
for (auto Info : ReflectionInfos) {
591591
for (auto MultiPayloadEnumDescriptor : Info.MultiPayloadEnum) {
592592

593-
// Assert that descriptor size is sane...
593+
// Assert that descriptor size is sound...
594594
assert(MultiPayloadEnumDescriptor->getContentsSizeInWords() >= 1);
595595
// We're limited to 64k of spare bits mask...
596596
assert(MultiPayloadEnumDescriptor->getContentsSizeInWords() < 16384);

stdlib/public/core/ArrayBuffer.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ extension _ArrayBuffer {
100100
/// Returns `true` if this buffer's storage is uniquely referenced;
101101
/// otherwise, returns `false`.
102102
///
103-
/// This function should only be used for internal sanity checks.
103+
/// This function should only be used for internal soundness checks.
104104
/// To guard a buffer mutation, use `beginCOWMutation`.
105105
@inlinable
106106
internal mutating func isUniquelyReferenced() -> Bool {

0 commit comments

Comments
 (0)