Skip to content

[lldb] Stop printing debug messages for non-failing CompilerType comparisons #2206

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

kastiglione
Copy link

@kastiglione kastiglione commented Dec 9, 2020

Prevent "TypeSystemSwiftTypeRef diverges from SwiftASTContext" debug messages for types that are equivalent.

Equivalent<CompilerType>() returns true for many types which are not strictly equal (==). For each case of equivalent-but-not-equal, the above debug message is being printed. This can appear to be an error if you're not familiar with it, and if you are it can end up being noise. With this change, the debug message is printed only if the types are not equivalent.

@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

friendly ping @adrian-prantl

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.

Yes, this is more confusing than helpful!

@kastiglione kastiglione merged commit f394794 into swift/main Dec 11, 2020
@kastiglione kastiglione deleted the lldb-Stop-printing-debug-messages-for-non-failing-CompilerType-comparisons branch December 11, 2020 01:32
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