Skip to content

[lldb] Consider bound types when deciding if the overall type is dynamic #3581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

augusto2112
Copy link

No description provided.

@augusto2112
Copy link
Author

@swift-ci test

Copy link

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

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

Looks good (minor stylistic comment inline)

NodePointer type_list = node->getLastChild();
if (type_list->getKind() != Node::Kind::TypeList)
return false;
for (size_t i = 0; i < type_list->getNumChildren(); ++i) {

Choose a reason for hiding this comment

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

for (NodePointer child : *type_list) {

@@ -7,19 +7,22 @@
// once per element.

[1:2, 2:3, 3:9]
// DICT-LABEL: $R0: [Int : Int] = 3 key/value pairs {
// DICT-LABEL: $R0: [Int : Int] =

Choose a reason for hiding this comment

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

I'm just curious: what does the full new output look like? Is the 3 key/value pairs on a different line now?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, the new output looks like this:

x: [Foundation.URL : Int] = {
  _variant = {
    object = {
      rawValue = 2 key/value pairs {
        [0] = {
          key = "https://github.com"
          value = 4
        }
        [1] = {
          key = "https://apple.com"
          value = 23
        }
      }
    }
  }
}

Choose a reason for hiding this comment

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

Shouldn't the _variant = be hidden by the Dictionary data formatter? Is the formatter not triggering?

Copy link
Author

Choose a reason for hiding this comment

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

@adrian-prantl an update on this: the changed isn't caused by this patch, but by implementing TypeSystemSwiftTypeRef::GetFullyUnqualifiedType, which this was in preparation for. I've removed the test changes and will look into why a typeref type ins't triggering the formatter.

Choose a reason for hiding this comment

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

Thanks for investigating!

@augusto2112 augusto2112 force-pushed the tsstyperef-dynamic-add-struct branch from cb1f8f5 to 248daba Compare November 30, 2021 16:39
@augusto2112
Copy link
Author

@swift-ci test

@augusto2112 augusto2112 merged commit 37b9bf1 into swiftlang:stable/20210726 Dec 1, 2021
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.

2 participants