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 aeb7456 commit 904b455Copy full SHA for 904b455
lib/Sema/CSApply.cpp
@@ -5929,7 +5929,8 @@ ArgumentList *ExprRewriter::coerceCallArguments(
5929
5930
// If the argument is an existential type that has been opened, perform
5931
// the open operation.
5932
- if (argType->getInOutObjectType()->isAnyExistentialType() &&
+ if (argType->getRValueType()->getInOutObjectType()
5933
+ ->isAnyExistentialType() &&
5934
paramType->hasOpenedExistential()) {
5935
// FIXME: Look for an opened existential and use it. We need to
5936
// know how far out we need to go to close the existentials. Huh.
0 commit comments