Skip to content

Conversation

@cyndyishida
Copy link

No description provided.

@cyndyishida cyndyishida requested a review from a team as a code owner May 9, 2025 16:15
@cyndyishida cyndyishida changed the title Eng/pr clang frontend diags Minor Clang frontend diagnostic improvements May 9, 2025
@cyndyishida
Copy link
Author

@swift-ci please test

1 similar comment
@cyndyishida
Copy link
Author

@swift-ci please test

@cyndyishida cyndyishida changed the title Minor Clang frontend diagnostic improvements Minor Clang diagnostic improvements May 10, 2025
Previously, diagnostics like `error: 'fNew' is unavailable: introduced
in macOS 11 unknown` were getting emitted when the active target triple
didn't have an environment tied to it. Instead, add a guard against this
to avoid the `unknown`.
…orReplaced (llvm#139318)

The expectation of this API is that it only changes the major version of
a preexisting version tuple. However, it was adding 0's, which caused
unintended changes in serialization or printing.

Instead, check for the existence of the non-major parts of the tuple.

(cherry picked from commit 12e6622)
@cyndyishida cyndyishida force-pushed the eng/PR-clangFrontendDiags branch from 4906c09 to 869edc3 Compare May 12, 2025 17:50
@cyndyishida
Copy link
Author

@swift-ci please test

Copy link

@JDevlieghere JDevlieghere left a comment

Choose a reason for hiding this comment

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

LGTM

@cyndyishida cyndyishida merged commit c467511 into swiftlang:swift/release/6.2 May 13, 2025
3 checks passed
@cyndyishida cyndyishida deleted the eng/PR-clangFrontendDiags branch May 13, 2025 02:29
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