Skip to content

[SILOptimizer] Handle a missing case in DataflowDiagnostics.cpp #11765

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

graydon
Copy link
Contributor

@graydon graydon commented Sep 5, 2017

Tiny fix for rdar://34111449

@graydon graydon requested a review from slavapestov September 5, 2017 03:03
@graydon
Copy link
Contributor Author

graydon commented Sep 5, 2017

@swift-ci please test

struct S {}
extension S:ExpressibleByStringLiteral {
init!(stringLiteral:String) {
} // expected-error {{missing return in a function expected to return 'S!'}}
Copy link
Contributor

Choose a reason for hiding this comment

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

The real error is that we're missing a self.init delegation or self assignment, but I guess before we weren't diagnosing anything at all here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We were crashing with missing case before.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. LGTM!

@graydon graydon merged commit e48cb82 into swiftlang:master Sep 5, 2017
@gottesmm
Copy link
Contributor

gottesmm commented Sep 5, 2017

@graydon Next time can you add more context to the commit message on what the crash was? If I didn't have access to radar and I didn't see your comment, I would be very confuzzled = (.

@graydon
Copy link
Contributor Author

graydon commented Sep 5, 2017

@gottesmm oh yeah, good point, sorry!

@gottesmm
Copy link
Contributor

gottesmm commented Sep 5, 2017

@graydon No worries!

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