Skip to content

Conversation

augusto2112
Copy link

Imported types also don't have typerefs, so we have to increment the index of the field we're looking for in that case.

@augusto2112
Copy link
Author

@swift-ci test

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to comment (I assume it's because enums have exactly 1 field?)
Also: should this be !is_enum && field.TR`?
Finally: testcase?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to comment (I assume it's because enums have exactly 1 field?)

I think the comment there still applies. If it's an enum and there's no typeref then we don't increment the index, because that's a case without a payload.

Also: should this be !is_enum && field.TR`?

I don't think so? If it's not not an enum we always want to increment the index (given the previous comment), in case it's an enum we wan't to increment only if there's a typeref.

Finally: testcase?

If we merge swiftlang/swift#61081 TestSwiftFoundation.py will catch this. Otherwise I'll have to figure out a way to trigger this behavior.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right.

@augusto2112
Copy link
Author

@swift-ci test

@augusto2112
Copy link
Author

swiftlang/swift#61081

@swift-ci test

@augusto2112
Copy link
Author

swiftlang/swift#61081

@swift-ci test

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point we should write an lldbutil function that calls FileCheck on a text file...

@augusto2112
Copy link
Author

@swift-ci test

@augusto2112
Copy link
Author

swiftlang/swift#61081

@swift-ci test

2 similar comments
@augusto2112
Copy link
Author

swiftlang/swift#61081

@swift-ci test

@augusto2112
Copy link
Author

swiftlang/swift#61081

@swift-ci test

@shahmishal
Copy link
Member

Targeted branch is cached/stable/20220421 which is not supported by Swift CI. it has to be stable/20220421

@augusto2112
Copy link
Author

Oh! So that's why! Thanks @shahmishal!

@augusto2112 augusto2112 changed the base branch from cached/stable/20220421 to stable/20220421 September 23, 2022 00:30
@augusto2112
Copy link
Author

swiftlang/swift#61081

@swift-ci test

2 similar comments
@augusto2112
Copy link
Author

swiftlang/swift#61081

@swift-ci test

@augusto2112
Copy link
Author

swiftlang/swift#61081

@swift-ci test

Imported types also don't have typerefs, so we have to increment the
index of the field we're looking for in that case.
@augusto2112
Copy link
Author

swiftlang/swift#61081

@swift-ci test

@augusto2112 augusto2112 merged commit 302f0d1 into swiftlang:stable/20220421 Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants