diff --git a/lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp b/lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp index 0600ee5c762b0..617f94fea094f 100644 --- a/lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp +++ b/lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp @@ -7289,10 +7289,10 @@ CompilerType SwiftASTContext::GetUnboundGenericType(opaque_compiler_type_t type, auto *nominal_type_decl = unbound_generic_type->getDecl(); swift::GenericSignature generic_sig = nominal_type_decl->getGenericSignature(); - swift::TypeArrayView depView = + llvm::ArrayRef params = generic_sig.getGenericParams(); - swift::Type depTy = depView[idx]; - return ToCompilerType({nominal_type_decl->mapTypeIntoContext(depTy) + swift::Type paramTy = params[idx]; + return ToCompilerType({nominal_type_decl->mapTypeIntoContext(paramTy) ->castTo()}); }