add a new (skeleton) pass for deshadowing inout variables.

Swift SVN r8954
This commit is contained in:
Chris Lattner
2013-10-07 15:53:40 +00:00
parent 6a84a1c8bc
commit d6b01a42ad
6 changed files with 66 additions and 3 deletions

View File

@@ -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);