Skip to content

Commit 1b57e3e

Browse files
committed
Simplify calls to GetSwiftType (NFC)
1 parent 3edb98f commit 1b57e3e

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
@@ -241,7 +241,7 @@ SwiftASTContext::GetCanonicalSwiftType(opaque_compiler_type_t opaque_type) {
241241
ConstString SwiftASTContext::GetMangledTypeName(opaque_compiler_type_t type) {
242242
VALID_OR_RETURN_CHECK_TYPE(
243243
type, ConstString("<invalid Swift context or opaque type>"));
244-
return GetMangledTypeName(GetSwiftType({weak_from_this(), type}).getPointer());
244+
return GetMangledTypeName(GetSwiftType(type).getPointer());
245245
}
246246

247247
typedef lldb_private::ThreadSafeDenseMap<swift::ASTContext *, SwiftASTContext *>
@@ -6248,7 +6248,7 @@ CompilerType SwiftASTContext::GetPointeeType(opaque_compiler_type_t type) {
62486248
CompilerType SwiftASTContext::GetPointerType(opaque_compiler_type_t type) {
62496249
VALID_OR_RETURN_CHECK_TYPE(type, CompilerType());
62506250

6251-
auto swift_type = GetSwiftType({weak_from_this(), type});
6251+
auto swift_type = GetSwiftType(type);
62526252
auto pointer_type =
62536253
swift_type->wrapInPointer(swift::PointerTypeKind::PTK_UnsafePointer);
62546254
if (pointer_type)
@@ -6260,7 +6260,7 @@ CompilerType SwiftASTContext::GetPointerType(opaque_compiler_type_t type) {
62606260
CompilerType SwiftASTContext::GetTypedefedType(opaque_compiler_type_t type) {
62616261
VALID_OR_RETURN_CHECK_TYPE(type, CompilerType());
62626262

6263-
swift::Type swift_type(GetSwiftType({weak_from_this(), type}));
6263+
swift::Type swift_type(GetSwiftType(type));
62646264
swift::TypeAliasType *name_alias_type =
62656265
swift::dyn_cast<swift::TypeAliasType>(swift_type.getPointer());
62666266
if (name_alias_type) {

0 commit comments

Comments
 (0)