Skip to content

Minor Clang diagnostic improvements #10659

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

Open
wants to merge 3 commits into
base: swift/release/6.2
Choose a base branch
from

Conversation

cyndyishida
Copy link

No description provided.

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`.
@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 May 9, 2025
@cyndyishida
Copy link
Author

@swift-ci please test

…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
Copy link
Author

@swift-ci please test

@cyndyishida cyndyishida changed the title Minor Clang frontend diagnostic improvements May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant