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 {
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 =
Original file line number Diff line number Diff 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));
You can’t perform that action at this time.
0 commit comments