mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
fix <rdar://problem/21176945> mutation through ? not considered a mutation
Swift SVN r29194
This commit is contained in:
@@ -1113,6 +1113,9 @@ void VarDeclUsageChecker::markStoredOrInOutExpr(Expr *E, unsigned Flags) {
|
||||
|
||||
if (auto *FVE = dyn_cast<ForceValueExpr>(E))
|
||||
return markStoredOrInOutExpr(FVE->getSubExpr(), Flags);
|
||||
|
||||
if (auto *BOE = dyn_cast<BindOptionalExpr>(E))
|
||||
return markStoredOrInOutExpr(BOE->getSubExpr(), Flags);
|
||||
|
||||
// If this is an OapqueValueExpr that we've seen a mapping for, jump to the
|
||||
// mapped value.
|
||||
|
||||
Reference in New Issue
Block a user