Skip to content

Commit de0a10e

Browse files
authored
Merge pull request #7050 from slavapestov/type-array-view-5.9
[Swift] Update for GenericSignature.getGenericParams() change [5.9]
2 parents 5cd14b9 + 07465be commit de0a10e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7289,10 +7289,10 @@ CompilerType SwiftASTContext::GetUnboundGenericType(opaque_compiler_type_t type,
72897289
auto *nominal_type_decl = unbound_generic_type->getDecl();
72907290
swift::GenericSignature generic_sig =
72917291
nominal_type_decl->getGenericSignature();
7292-
swift::TypeArrayView<swift::GenericTypeParamType> depView =
7292+
llvm::ArrayRef<swift::GenericTypeParamType *> params =
72937293
generic_sig.getGenericParams();
7294-
swift::Type depTy = depView[idx];
7295-
return ToCompilerType({nominal_type_decl->mapTypeIntoContext(depTy)
7294+
swift::Type paramTy = params[idx];
7295+
return ToCompilerType({nominal_type_decl->mapTypeIntoContext(paramTy)
72967296
->castTo<swift::ArchetypeType>()});
72977297
}
72987298

0 commit comments

Comments
 (0)