Skip to content

Commit 9a6bf46

Browse files
committed
Spelling silgen
* actually * arbitrary * cargo-culted * clazz * constrained * continuation * coordinator * coroutine * derivative * destroyer * given * have * imported * initialization * items * necessarily * occurring * omitting * overridden * parameter * possible * predecessor * preparation * resilience * should * struct * that * the * throwing * unexpectedly * uniqueness * using * value * villain Signed-off-by: Josh Soref <[email protected]>
1 parent 804e3f0 commit 9a6bf46

33 files changed

+87
-87
lines changed

lib/SILGen/ArgumentSource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class PreparedArguments {
352352

353353
/// Add an arbitrary argument source to these arguments.
354354
///
355-
/// An argument list with an arbtrary argument source can't generally
355+
/// An argument list with an arbitrary argument source can't generally
356356
/// be copied.
357357
void addArbitrary(ArgumentSource &&arg) {
358358
assert(!isNull());

lib/SILGen/Conversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ class ConvertingInitialization final : public Initialization {
298298
ManagedValue value, bool isInit) override;
299299

300300
/// Given that the result of the given expression needs to sequentially
301-
/// undergo the the given conversion and then this conversion, attempt to
301+
/// undergo the given conversion and then this conversion, attempt to
302302
/// peephole the result. If successful, the value will be set in this
303303
/// initialization. The initialization will not yet be finished.
304304
bool tryPeephole(SILGenFunction &SGF, Expr *E, Conversion innerConversion);

lib/SILGen/RValue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class CleanupCloner;
5151
/// cleanups. This is verified upon construction of an RValue.
5252
///
5353
/// 2. All sub-ManagedValues with non-trivial ValueOwnershipKind must have the
54-
/// same ValueOwnershipKind. There is a subtle thing occuring here. Since all
54+
/// same ValueOwnershipKind. There is a subtle thing occurring here. Since all
5555
/// addresses are viewed from an ownership perspective as having trivial
5656
/// ownership, this causes the verification to ignore address only
5757
/// values. Once we transition to opaque values, the verification will

lib/SILGen/SILGen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ void SILGenModule::emitDifferentiabilityWitness(
13091309
// NOTE(TF-893): Extending capacity is necessary when `origSilFnType` has
13101310
// parameters corresponding to captured variables. These parameters do not
13111311
// appear in the type of `origFnType`.
1312-
// TODO: If posssible, change `autodiff::getLoweredParameterIndices` to
1312+
// TODO: If possible, change `autodiff::getLoweredParameterIndices` to
13131313
// take `CaptureInfo` into account.
13141314
if (origSilFnType->getNumParameters() > silParamIndices->getCapacity())
13151315
silParamIndices = silParamIndices->extendingCapacity(
@@ -1461,7 +1461,7 @@ void SILGenModule::emitConstructor(ConstructorDecl *decl) {
14611461

14621462
if (declCtx->getSelfClassDecl()) {
14631463
// Designated initializers for classes, as well as @objc convenience
1464-
// initializers, have have separate entry points for allocation and
1464+
// initializers, have separate entry points for allocation and
14651465
// initialization.
14661466
if (decl->isDesignatedInit() || decl->isObjC()) {
14671467
emitOrDelayFunction(*this, constant);

lib/SILGen/SILGenApply.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,8 +1504,8 @@ class SILGenApply : public Lowering::ExprVisitor<SILGenApply> {
15041504
// If we haven't allocated "self" yet at this point, do so.
15051505
if (SGF.AllocatorMetatype) {
15061506
bool usesObjCAllocation;
1507-
if (auto clas = dyn_cast<ClassDecl>(nominal)) {
1508-
usesObjCAllocation = usesObjCAllocator(clas);
1507+
if (auto clazz = dyn_cast<ClassDecl>(nominal)) {
1508+
usesObjCAllocation = usesObjCAllocator(clazz);
15091509
} else {
15101510
// In the protocol extension case, we should only be here if the callee
15111511
// initializer is @objc.

lib/SILGen/SILGenBackDeploy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static void emitBackDeployForwardApplyAndReturnOrThrow(
149149
return;
150150
}
151151

152-
// The original function is neither throwing nor a couroutine. Apply it and
152+
// The original function is neither throwing nor a coroutine. Apply it and
153153
// forward its results straight to the return block.
154154
auto *apply = SGF.B.createApply(loc, functionRef, subs, params);
155155
extractAllElements(apply, loc, SGF.B, directResults);

lib/SILGen/SILGenBridging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ static ManagedValue emitCBridgedToNativeValue(
11351135
}
11361136

11371137
// Otherwise, we use more complicated logic that handles results that
1138-
// were unexpetedly null.
1138+
// were unexpectedly null.
11391139

11401140
assert(bridgedType.isAnyClassReferenceType());
11411141

lib/SILGen/SILGenDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ void EnumElementPatternInitialization::emitEnumMatch(
984984
// We must treat the boxed value as +0 since it may be shared. Copy it
985985
// if nontrivial.
986986
//
987-
// NOTE: The APIs that we are usinng here will ensure that if we have
987+
// NOTE: The APIs that we are using here will ensure that if we have
988988
// a trivial value, the load_borrow will become a load [trivial] and
989989
// the copies will be "automagically" elided.
990990
if (boxedTL.isLoadable() || !SGF.silConv.useLoweredAddresses()) {

lib/SILGen/SILGenDestructor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ void SILGenFunction::emitObjCDestructor(SILDeclRef dtor) {
497497

498498
B.createApply(cleanupLoc, superclassDtorValue, subMap, superSelf);
499499

500-
// We know that the givne value came in at +1, but we pass the relevant value
500+
// We know that the given value came in at +1, but we pass the relevant value
501501
// as unowned to the destructor. Create a fake balance for the verifier to be
502502
// happy.
503503
B.createEndLifetime(cleanupLoc, superSelf);

lib/SILGen/SILGenExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5437,7 +5437,7 @@ RValue RValueEmitter::visitMakeTemporarilyEscapableExpr(
54375437
RValue rvalue = visitSubExpr(borrowedClosure, false /* isClosureConsumable */);
54385438

54395439
// Now create the verification of the withoutActuallyEscaping operand.
5440-
// Either we fail the uniquenes check (which means the closure has escaped)
5440+
// Either we fail the uniqueness check (which means the closure has escaped)
54415441
// and abort or we continue and destroy the ultimate reference.
54425442
auto isEscaping = SGF.B.createIsEscapingClosure(
54435443
loc, borrowedClosure.getValue(),

0 commit comments

Comments
 (0)