Skip to content

Commit d069169

Browse files
committed
Fix some typos.
1 parent 926b4b1 commit d069169

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/swift/SILOptimizer/Utils/PartitionUtils.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,14 +394,14 @@ class Partition {
394394
return fst_reduced;
395395
}
396396

397-
// Apply the passed PartitionOp to this partition, performing its action.
398-
// A `handleFailure` closure can optionally be passed in that will be called
399-
// if a transferred region is required. The closure is given the PartitionOp
400-
// that failed, and the index of the SIL value that was required but
397+
// Apply the passed PartitionOp to this partition, performing its action. A
398+
// `handleFailure` closure can optionally be passed in that will be called if
399+
// a transferred region is required. The closure is given the PartitionOp that
400+
// failed, and the index of the SIL value that was required but
401401
// transferred. Additionally, a list of "nonconsumable" indices can be passed
402402
// in along with a handleConsumeNonConsumable closure. In the event that a
403403
// region containing one of the nonconsumable indices is transferred, the
404-
// closure will be called with the offending Consume.
404+
// closure will be called with the offending transfer.
405405
void apply(
406406
PartitionOp op,
407407
llvm::function_ref<void(const PartitionOp &, Element)> handleFailure =

lib/SILOptimizer/Mandatory/SendNonSendable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ struct PartitionOpBuilder {
246246

247247
void addTransfer(SILValue value, Expr *sourceExpr = nullptr) {
248248
assert(valueHasID(value) &&
249-
"transfered value should already have been encountered");
249+
"transferred value should already have been encountered");
250250

251251
currentInstPartitionOps.emplace_back(
252252
PartitionOp::Transfer(lookupValueID(value), currentInst, sourceExpr));

0 commit comments

Comments
 (0)