Replace getAnyOptionalObjectType with getOptionalObjectType.

This commit is contained in:
Mark Lacey
2018-02-01 09:57:26 -08:00
parent 8a775e1068
commit b4b66bc8e8
66 changed files with 360 additions and 381 deletions

View File

@@ -490,7 +490,7 @@ static SILValue findClosureStoredIntoBlock(SILValue V) {
/// Return the partial_apply and a flag set to true if the closure is
/// indirectly captured by a reabstraction thunk.
FindClosureResult swift::findClosureForAppliedArg(SILValue V) {
if (auto optionalObjTy = V->getType().getAnyOptionalObjectType())
if (auto optionalObjTy = V->getType().getOptionalObjectType())
V = cast<EnumInst>(V)->getOperand();
auto fnType = V->getType().getAs<SILFunctionType>();