Skip to content

Commit 806ef0f

Browse files
committed
Comment getUnderlyingAddressRoot.
1 parent 548878f commit 806ef0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SIL/InstructionUtils.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ SILValue swift::getUnderlyingObject(SILValue V) {
3333
}
3434
}
3535

36+
/// Strip off casts and address projections into the interior of a value. Unlike
37+
/// getUnderlyingObject, this does not find the root of a heap object--a class
38+
/// property is itself an address root.
3639
SILValue swift::getUnderlyingAddressRoot(SILValue V) {
3740
while (true) {
3841
SILValue V2 = stripIndexingInsts(stripCasts(V));

0 commit comments

Comments
 (0)