[SILGen] Gardening: Deleted comment.

Way back in

commit d0bb0274e9
Author: Joe Groff <jgroff@apple.com>
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.
This commit is contained in:
Nate Chandler
2023-08-09 16:39:07 -07:00
parent c8d1ea5aae
commit e894a34ef8

View File

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