We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d72b9a4 commit 6ce2454Copy full SHA for 6ce2454
lib/Sema/CSApply.cpp
@@ -5935,7 +5935,8 @@ ArgumentList *ExprRewriter::coerceCallArguments(
5935
5936
// If the argument is an existential type that has been opened, perform
5937
// the open operation.
5938
- if (argType->getInOutObjectType()->isAnyExistentialType() &&
+ if (argType->getRValueType()->getInOutObjectType()
5939
+ ->isAnyExistentialType() &&
5940
paramType->hasOpenedExistential()) {
5941
// FIXME: Look for an opened existential and use it. We need to
5942
// know how far out we need to go to close the existentials. Huh.
0 commit comments