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 {
945
945
llvm::MapVector<CanType, llvm::Value *> &typeToMetadataVec,
946
946
SILType T) const override {
947
947
auto canType = T.getSwiftRValueType ();
948
- assert (!canType->hasArchetype () &&
948
+ assert (!canType->is <ArchetypeType> () &&
949
949
" collectArchetypeMetadata: no archetype expected here" );
950
950
}
951
951
Original file line number Diff line number Diff line change @@ -1397,6 +1397,5 @@ void TypeInfo::collectArchetypeMetadata(
1397
1397
llvm::MapVector<CanType, llvm::Value *> &typeToMetadataVec,
1398
1398
SILType T) const {
1399
1399
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" );
1402
1401
}
You can’t perform that action at this time.
0 commit comments