mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user