Merge pull request #42514 from jsoref/spelling-siloptimizer

Spelling siloptimizer
This commit is contained in:
Allan Shortlidge
2022-10-03 22:50:19 -07:00
committed by GitHub
202 changed files with 481 additions and 481 deletions

View File

@@ -814,7 +814,7 @@ void LifetimeChecker::diagnoseBadExplicitStore(SILInstruction *Inst) {
diagnose(Module, Inst->getLoc(), diag::explicit_store_of_compilerinitialized);
}
/// Determines whether the given function is a constructor that belogs to a
/// Determines whether the given function is a constructor that belongs to a
/// distributed actor declaration.
/// \returns nullptr if false, and the class decl for the actor otherwise.
static ClassDecl* getDistributedActorOfCtor(SILFunction &F) {
@@ -1943,7 +1943,7 @@ static bool isFailableInitReturnUseOfEnum(EnumInst *EI) {
/// Given a load instruction, return true iff the result of the load is used
/// in a return instruction directly or is lifted to an optional (i.e., wrapped
/// into .some) and returned. These conditions are used to detect whether the
/// given load instruction is autogenerated for a return from the initalizers:
/// given load instruction is autogenerated for a return from the initializers:
/// `init` or `init?`, respectively. In such cases, the load should not be
/// considered as a use of the value but rather as a part of the return
/// instruction. We emit a specific diagnostic in this case.
@@ -3350,7 +3350,7 @@ handleConditionalDestroys(SILValue ControlVariableAddr) {
assert(!Availability.isAllYes() &&
"Should not end up here if fully initialized");
// For root class initializers, we check if all proeprties were
// For root class initializers, we check if all properties were
// dynamically initialized, and if so, treat this as a release of
// an initialized 'self', instead of tearing down the fields
// one by one and deallocating memory.