Skip to content

Commit 10522e5

Browse files
committed
Address review comments and simplify.
1 parent 9382eaf commit 10522e5

File tree

2 files changed

+89
-119
lines changed

2 files changed

+89
-119
lines changed

lib/SILOptimizer/IPO/CapturePropagation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ bool CapturePropagation::optimizePartialApply(PartialApplyInst *PAI) {
462462
if (auto *NewFunc = getSpecializedWithDeadParams(FuncBuilder,
463463
PAI, SubstF, PAI->getNumArguments(), GenericSpecialized)) {
464464
// SWIFT_ENABLE_TENSORFLOW
465-
// Add an previously unexercised check to prevent AD crash. Rewrite
465+
// Add a previously unexercised check to prevent AD crash. Rewrite
466466
// `partial_apply` only if the specialized function is `@convention(thin)`.
467467
// Revert check when `VJPEmitter::visitApplyInst` no longer produces
468468
// argumentless `partial_apply` instructions.

0 commit comments

Comments
 (0)