Skip to content

Commit f3c2851

Browse files
committed
[Gardening] Tweaked comments.
1 parent 47e5ede commit f3c2851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SIL/Utils/MemAccessUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ class AccessPathVisitor : public FindAccessVisitorImpl<AccessPathVisitor> {
14021402
AccessPath::Index::forSubObjectProjection(projIdx.Index));
14031403
} else {
14041404
// Ignore everything in getAccessProjectionOperand that is an access
1405-
// projection with no affect on the access path.
1405+
// projection with no effect on the access path.
14061406
assert(isa<OpenExistentialAddrInst>(projectedAddr) ||
14071407
isa<InitEnumDataAddrInst>(projectedAddr) ||
14081408
isa<UncheckedTakeEnumDataAddrInst>(projectedAddr)
@@ -1982,7 +1982,7 @@ AccessPathDefUseTraversal::visitSingleValueUser(SingleValueInstruction *svi,
19821982
return IgnoredUse;
19831983

19841984
// open_existential_addr and unchecked_take_enum_data_addr are classified as
1985-
// access projections, but they also modify memory. Both see through them and
1985+
// access projections, but they also modify memory. Both look through them and
19861986
// also report them as uses.
19871987
case SILInstructionKind::OpenExistentialAddrInst:
19881988
case SILInstructionKind::UncheckedTakeEnumDataAddrInst:

0 commit comments

Comments
 (0)