@@ -2015,7 +2015,6 @@ SwiftLanguageRuntimeImpl::BindGenericTypeParameters(StackFrame &stack_frame,
2015
2015
const swift::reflection::TypeRef *bound_type_ref =
2016
2016
type_ref->subst (reflection_ctx->getBuilder (), substitutions);
2017
2017
NodePointer node = bound_type_ref->getDemangling (dem);
2018
- CompilerType bound_type = ts.RemangleAsType (dem, node);
2019
2018
2020
2019
// Import the type into the scratch context. Subsequent conversions
2021
2020
// to Swift types must be performed in the scratch context, since
@@ -2037,15 +2036,7 @@ SwiftLanguageRuntimeImpl::BindGenericTypeParameters(StackFrame &stack_frame,
2037
2036
" No scratch context available." );
2038
2037
return ts.GetTypeFromMangledTypename (mangled_name);
2039
2038
}
2040
- SwiftASTContext *swift_ast_ctx = scratch_ctx->GetSwiftASTContext ();
2041
- if (!swift_ast_ctx) {
2042
- LLDB_LOG (GetLog (LLDBLog::Expressions | LLDBLog::Types),
2043
- " No scratch context available." );
2044
- return ts.GetTypeFromMangledTypename (mangled_name);
2045
- }
2046
-
2047
- bound_type = swift_ast_ctx->ImportType (bound_type, error);
2048
-
2039
+ CompilerType bound_type = scratch_ctx->RemangleAsType (dem, node);
2049
2040
LLDB_LOG (GetLog (LLDBLog::Expressions | LLDBLog::Types), " Bound {0} -> {1}." ,
2050
2041
mangled_name, bound_type.GetMangledTypeName ());
2051
2042
return bound_type;
0 commit comments