fix <rdar://problem/21176945> mutation through ? not considered a mutation

Swift SVN r29194
This commit is contained in:
Chris Lattner
2015-05-31 21:26:51 +00:00
parent b6e002cc70
commit 7ca647002d
2 changed files with 10 additions and 0 deletions

View File

@@ -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.