Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07465be

Browse files
committed
[Swift] Update for GenericSignature.getGenericParams() change
1 parent 5cd14b9 commit 07465be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
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)