Skip to content

Commit decff7c

Browse files
authored
Merge pull request #21594 from atrick/slava-review
Use AbstractionPattern::getOpaque() per Slava's review.
2 parents acd8419 + 207d6a9 commit decff7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/SILOptimizer/SILCombiner/SILCombinerApplyVisitors.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,7 @@ SILCombiner::buildConcreteOpenedExistentialInfoFromSoleConformingType(
695695
if (auto *OEA = dyn_cast<OpenExistentialAddrInst>(OAI.OpenedArchetypeValue)) {
696696
// Bail if ConcreteSILType is not the same SILType as the type stored in the
697697
// existential after maximal reabstraction.
698-
auto archetype = OpenedArchetypeType::getAny(SoleCEI.ExistentialType);
699-
Lowering::AbstractionPattern abstractionPattern(archetype);
698+
auto abstractionPattern = Lowering::AbstractionPattern::getOpaque();
700699
auto abstractTy = M.Types.getLoweredType(abstractionPattern, ConcreteType);
701700
if (abstractTy != concreteSILType)
702701
return None;

0 commit comments

Comments
 (0)