mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
add a new (skeleton) pass for deshadowing inout variables.
Swift SVN r8954
This commit is contained in:
@@ -990,7 +990,7 @@ void ElementUseCollector::collectUses(SILValue Pointer, unsigned BaseElt) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Otherwise, check for [inout].
|
||||
// Otherwise, check for @inout.
|
||||
Type ArgTy = FTI->getSwiftArgumentType(ArgumentNumber);
|
||||
if (ArgTy->is<LValueType>()) {
|
||||
addElementUses(BaseElt, PointeeType, User, UseKind::InOutUse);
|
||||
|
||||
Reference in New Issue
Block a user