Skip to content

Commit 4c80b27

Browse files
slavapestovAnthonyLatsis
authored andcommitted
[stable/20250402] Cherry-pick "[Swift] Update for TypeAliasType::get() change"
(cherry picked from commit 2ad0c13)
1 parent 0216bc5 commit 4c80b27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4871,7 +4871,7 @@ static CompilerType ValueDeclToType(swift::ValueDecl *decl) {
48714871
swift::TypeAliasDecl *alias_decl =
48724872
swift::cast<swift::TypeAliasDecl>(decl);
48734873
swift::Type swift_type = swift::TypeAliasType::get(
4874-
alias_decl, swift::Type(), swift::SubstitutionMap(),
4874+
alias_decl, swift::Type(), llvm::ArrayRef<swift::Type>(),
48754875
alias_decl->getUnderlyingType());
48764876
return ToCompilerType({swift_type.getPointer()});
48774877
}
@@ -4930,7 +4930,7 @@ static SwiftASTContext::TypeOrDecl DeclToTypeOrDecl(swift::Decl *decl) {
49304930
swift::TypeAliasDecl *alias_decl =
49314931
swift::cast<swift::TypeAliasDecl>(decl);
49324932
swift::Type swift_type = swift::TypeAliasType::get(
4933-
alias_decl, swift::Type(), swift::SubstitutionMap(),
4933+
alias_decl, swift::Type(), llvm::ArrayRef<swift::Type>(),
49344934
alias_decl->getUnderlyingType());
49354935
return ToCompilerType(swift_type.getPointer());
49364936
}

0 commit comments

Comments
 (0)