Skip to content

Commit 617e09a

Browse files
authored
Merge pull request #4213 from rjmccall/update-for-existential-layout-change-5.7
[5.7] Adjust to Swift API changes
2 parents 1c3039b + 314bb99 commit 617e09a

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
@@ -5301,8 +5301,8 @@ bool SwiftASTContext::GetProtocolTypeInfo(const CompilerType &type,
53015301
}
53025302

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

@@ -6487,8 +6487,7 @@ GetExistentialTypeChild(swift::ASTContext *swift_ast_ctx, CompilerType type,
64876487
swift::ExistentialLayout layout = swift_can_type.getExistentialLayout();
64886488

64896489
std::string name;
6490-
for (auto protoType : layout.getProtocols()) {
6491-
auto proto = protoType->getDecl();
6490+
for (auto proto : layout.getProtocols()) {
64926491
if (proto->isObjC())
64936492
continue;
64946493

0 commit comments

Comments
 (0)