Skip to content

Commit e894a34

Browse files
committed
[SILGen] Gardening: Deleted comment.
Way back in commit d0bb027 Author: Joe Groff <[email protected]> Date: Mon Nov 23 11:47:09 2015 -0800 the convention was changed such that LValues were passed only by box rather than by box and address. Delete the comment that says that both are passed.
1 parent c8d1ea5 commit e894a34

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/SILGen/SILGenFunction.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,6 @@ void SILGenFunction::emitCaptures(SILLocation loc,
796796
assert(!isPack);
797797

798798
auto entryValue = getAddressValue(val, /*forceCopy=*/false);
799-
// LValues are captured as both the box owning the value and the
800-
// address of the value.
801799
assert(entryValue->getType().isAddress() &&
802800
"no address for captured var!");
803801
// Boxes of opaque return values stay opaque.
@@ -860,8 +858,6 @@ void SILGenFunction::emitCaptures(SILLocation loc,
860858
assert(!isPack);
861859

862860
auto entryValue = getAddressValue(val, /*forceCopy=*/false);
863-
// LValues are captured as both the box owning the value and the
864-
// address of the value.
865861
assert(entryValue->getType().isAddress() &&
866862
"no address for captured var!");
867863
// Boxes of opaque return values stay opaque.

0 commit comments

Comments
 (0)