Skip to content

Commit a6680e1

Browse files
authored
Merge pull request #4218 from rjmccall/adjust-to-layout-protocols-change-next
[next] Adjust to Swift API changes
2 parents d4ae6a6 + e319180 commit a6680e1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5302,8 +5302,8 @@ bool SwiftASTContext::GetProtocolTypeInfo(const CompilerType &type,
53025302
}
53035303

53045304
unsigned num_witness_tables = 0;
5305-
for (auto protoTy : layout.getProtocols()) {
5306-
if (!protoTy->getDecl()->isObjC())
5305+
for (auto protoDecl : layout.getProtocols()) {
5306+
if (!protoDecl->isObjC())
53075307
num_witness_tables++;
53085308
}
53095309

@@ -6492,8 +6492,7 @@ GetExistentialTypeChild(swift::ASTContext *swift_ast_ctx, CompilerType type,
64926492
swift::ExistentialLayout layout = swift_can_type.getExistentialLayout();
64936493

64946494
std::string name;
6495-
for (auto protoType : layout.getProtocols()) {
6496-
auto proto = protoType->getDecl();
6495+
for (auto proto : layout.getProtocols()) {
64976496
if (proto->isObjC())
64986497
continue;
64996498

0 commit comments

Comments
 (0)