File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -945,7 +945,7 @@ namespace {
945945 llvm::MapVector<CanType, llvm::Value *> &typeToMetadataVec,
946946 SILType T) const override {
947947 auto canType = T.getSwiftRValueType ();
948- assert (!canType->hasArchetype () &&
948+ assert (!canType->is <ArchetypeType> () &&
949949 " collectArchetypeMetadata: no archetype expected here" );
950950 }
951951
Original file line number Diff line number Diff line change @@ -1397,6 +1397,5 @@ void TypeInfo::collectArchetypeMetadata(
13971397 llvm::MapVector<CanType, llvm::Value *> &typeToMetadataVec,
13981398 SILType T) const {
13991399 auto canType = T.getSwiftRValueType ();
1400- assert (!canType->getWithoutSpecifierType ()->is <ArchetypeType>() &&
1401- " Did not expect an ArchetypeType" );
1400+ assert (!canType->is <ArchetypeType>() && " Did not expect an ArchetypeType" );
14021401}
You can’t perform that action at this time.
0 commit comments