Skip to content

Commit 5329d92

Browse files
committed
Clarify a comment in MemAccessUtils.
1 parent 976be60 commit 5329d92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/SIL/Utils/MemAccessUtils.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,9 @@ bool swift::isLetAddress(SILValue address) {
369369
// RC-identical would confuse ARC optimization, which might eliminate a retain
370370
// of such an object completely.
371371
//
372-
// The SILVerifier checks that none of these operations cast a nontrivial value
373-
// to a reference except unconditional_checked_cast[_value].
372+
// The SILVerifier checks that none of these operations cast a trivial value to
373+
// a reference except unconditional_checked_cast[_value], which is checked By
374+
// SILDynamicCastInst::isRCIdentityPreserving().
374375
bool swift::isRCIdentityPreservingCast(SingleValueInstruction *svi) {
375376
switch (svi->getKind()) {
376377
default:

0 commit comments

Comments
 (0)