@@ -241,7 +241,7 @@ SwiftASTContext::GetCanonicalSwiftType(opaque_compiler_type_t opaque_type) {
241
241
ConstString SwiftASTContext::GetMangledTypeName (opaque_compiler_type_t type) {
242
242
VALID_OR_RETURN_CHECK_TYPE (
243
243
type, ConstString (" <invalid Swift context or opaque type>" ));
244
- return GetMangledTypeName (GetSwiftType ({ weak_from_this (), type} ).getPointer ());
244
+ return GetMangledTypeName (GetSwiftType (type).getPointer ());
245
245
}
246
246
247
247
typedef lldb_private::ThreadSafeDenseMap<swift::ASTContext *, SwiftASTContext *>
@@ -6248,7 +6248,7 @@ CompilerType SwiftASTContext::GetPointeeType(opaque_compiler_type_t type) {
6248
6248
CompilerType SwiftASTContext::GetPointerType (opaque_compiler_type_t type) {
6249
6249
VALID_OR_RETURN_CHECK_TYPE (type, CompilerType ());
6250
6250
6251
- auto swift_type = GetSwiftType ({ weak_from_this (), type} );
6251
+ auto swift_type = GetSwiftType (type);
6252
6252
auto pointer_type =
6253
6253
swift_type->wrapInPointer (swift::PointerTypeKind::PTK_UnsafePointer);
6254
6254
if (pointer_type)
@@ -6260,7 +6260,7 @@ CompilerType SwiftASTContext::GetPointerType(opaque_compiler_type_t type) {
6260
6260
CompilerType SwiftASTContext::GetTypedefedType (opaque_compiler_type_t type) {
6261
6261
VALID_OR_RETURN_CHECK_TYPE (type, CompilerType ());
6262
6262
6263
- swift::Type swift_type (GetSwiftType ({ weak_from_this (), type} ));
6263
+ swift::Type swift_type (GetSwiftType (type));
6264
6264
swift::TypeAliasType *name_alias_type =
6265
6265
swift::dyn_cast<swift::TypeAliasType>(swift_type.getPointer ());
6266
6266
if (name_alias_type) {
0 commit comments