Skip to content

Commit 5957122

Browse files
committed
[Constraint system] Simplify stripping inout/lvalue type for opened existentials
1 parent 904b455 commit 5957122

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/CSApply.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5929,8 +5929,7 @@ ArgumentList *ExprRewriter::coerceCallArguments(
59295929

59305930
// If the argument is an existential type that has been opened, perform
59315931
// the open operation.
5932-
if (argType->getRValueType()->getInOutObjectType()
5933-
->isAnyExistentialType() &&
5932+
if (argType->getWithoutSpecifierType()->isAnyExistentialType() &&
59345933
paramType->hasOpenedExistential()) {
59355934
// FIXME: Look for an opened existential and use it. We need to
59365935
// know how far out we need to go to close the existentials. Huh.

0 commit comments

Comments
 (0)