Skip to content

Commit 066f140

Browse files
authored
Merge pull request #6269 from slavapestov/revert-subst-early-exit
Revert "AST: Early exit from subst() if the type is concrete"
2 parents 7d40130 + c075bec commit 066f140

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/AST/Type.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2907,16 +2907,7 @@ static Type substType(
29072907
llvm::PointerUnion<ModuleDecl *, const SubstitutionMap *> conformances,
29082908
TypeSubstitutionFn substitutions,
29092909
SubstOptions options) {
2910-
2911-
// FIXME: Change getTypeOfMember() to not pass GenericFunctionType here
2912-
if (!derivedType->hasArchetype() &&
2913-
!derivedType->hasTypeParameter() &&
2914-
!derivedType->is<GenericFunctionType>())
2915-
return derivedType;
2916-
29172910
return derivedType.transform([&](Type type) -> Type {
2918-
// FIXME: Add SIL versions of mapTypeIntoContext() and
2919-
// mapTypeOutOfContext() and use them appropriately
29202911
assert((options.contains(SubstFlags::AllowLoweredTypes) ||
29212912
!isa<SILFunctionType>(type.getPointer())) &&
29222913
"should not be doing AST type-substitution on a lowered SIL type;"

0 commit comments

Comments
 (0)