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 d6117a4 commit a8d162fCopy full SHA for a8d162f
lib/SILOptimizer/SILCombiner/SILCombinerApplyVisitors.cpp
@@ -904,7 +904,7 @@ SILCombiner::buildConcreteOpenedExistentialInfoFromSoleConformingType(
904
(archetypeTy->getConformsTo().size() == 1)) {
905
PD = archetypeTy->getConformsTo()[0];
906
} else if (ArgType.isExistentialType() && !ArgType.isAnyObject() &&
907
- !SwiftArgType->isAny()) {
+ !SwiftArgType->isAny() && SwiftArgType->getAnyNominal()) {
908
PD = dyn_cast<ProtocolDecl>(SwiftArgType->getAnyNominal());
909
}
910
0 commit comments