Skip to content

Commit 5ce0148

Browse files
committed
[Gardening] Tweaked comment.
1 parent 510e911 commit 5ce0148

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/SILOptimizer/Mandatory/AddressLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ bool OpaqueStorageAllocation::checkStorageDominates(
11401140
}
11411141
// Handle both phis and terminator results.
11421142
auto *bbArg = cast<SILPhiArgument>(incomingValue);
1143-
// The storage block must strictly dominate the phi.
1143+
// The storage block must strictly dominate the argument block.
11441144
if (!pass.domInfo->properlyDominates(allocInst->getParent(),
11451145
bbArg->getParent())) {
11461146
return false;

lib/SILOptimizer/Mandatory/AddressLowering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace swift {
3232
///
3333
/// 4. Rewritten. The definition of this opaque value is fully translated
3434
/// into lowered SIL. Instructions are typically materialized and rewritten at
35-
/// the same time. A indirect result, however, is materialized as soon as its
35+
/// the same time. An indirect result, however, is materialized as soon as its
3636
/// alloc_stack is emitted, but only rewritten once the call itself is
3737
/// rewritten.
3838
///

0 commit comments

Comments
 (0)