Skip to content

[SourceKit] Suppress oslog_invalid_log_message diagnostic in live issues #38778

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

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

bnbarham
Copy link
Contributor

@bnbarham bnbarham commented Aug 6, 2021

The index build skips all function bodies, including inlinable. The
OSLogOptimization pass expects SIL for inlinable bodies and thus
outputs a spurious diagnostic for live issues when the
OSLogInterpolation extension is in a separate module to the log
statement.

Ignore this for now, but we may need to re-evaluate if this becomes a
more widespread problem.

Resolves rdar://79100763

The index build skips *all* function bodies, including inlinable. The
`OSLogOptimization` pass expects SIL for inlinable bodies and thus
outputs a spurious diagnostic for live issues when the
`OSLogInterpolation` extension is in a separate module to the log
statement.

Ignore this for now, but we may need to re-evaluate if this becomes a
more widespread problem.

Resolves rdar://79100763
@bnbarham bnbarham requested a review from akyrtzi August 6, 2021 06:54
@bnbarham
Copy link
Contributor Author

bnbarham commented Aug 6, 2021

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Aug 6, 2021

Build failed
Swift Test OS X Platform
Git Sha - f6899ed

@bnbarham
Copy link
Contributor Author

bnbarham commented Aug 6, 2021

@swift-ci please test macOS platform

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