File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
include/swift/SILOptimizer/Utils
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -394,14 +394,14 @@ class Partition {
394
394
return fst_reduced;
395
395
}
396
396
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
401
401
// transferred. Additionally, a list of "nonconsumable" indices can be passed
402
402
// in along with a handleConsumeNonConsumable closure. In the event that a
403
403
// 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 .
405
405
void apply (
406
406
PartitionOp op,
407
407
llvm::function_ref<void (const PartitionOp &, Element)> handleFailure =
Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ struct PartitionOpBuilder {
246
246
247
247
void addTransfer (SILValue value, Expr *sourceExpr = nullptr ) {
248
248
assert (valueHasID (value) &&
249
- " transfered value should already have been encountered" );
249
+ " transferred value should already have been encountered" );
250
250
251
251
currentInstPartitionOps.emplace_back (
252
252
PartitionOp::Transfer (lookupValueID (value), currentInst, sourceExpr));
You can’t perform that action at this time.
0 commit comments