Skip to content

Commit 36c9917

Browse files
committed
[Constraint system] Simplify stripping inout/lvalue type for opened existentials
1 parent 2679294 commit 36c9917

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
@@ -5935,8 +5935,7 @@ ArgumentList *ExprRewriter::coerceCallArguments(
59355935

59365936
// If the argument is an existential type that has been opened, perform
59375937
// the open operation.
5938-
if (argType->getRValueType()->getInOutObjectType()
5939-
->isAnyExistentialType() &&
5938+
if (argType->getWithoutSpecifierType()->isAnyExistentialType() &&
59405939
paramType->hasOpenedExistential()) {
59415940
// FIXME: Look for an opened existential and use it. We need to
59425941
// know how far out we need to go to close the existentials. Huh.

0 commit comments

Comments
 (0)