Skip to content

SILGen: Plumb the source location of force-unwraps through the intrinsic. #2957

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
Jun 8, 2016

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Jun 8, 2016

When a force-unwrap fails, show the source location of the '!' operator, not the line in the standard library that triggers the precondition.

@jckarter jckarter force-pushed the optional-unwrap-source-loc branch from e1ec938 to b198bed Compare June 8, 2016 22:08
…sic.

When a force-unwrap fails, show the source location of the '!' operator, not the line in the standard library that triggers the precondition.
@jckarter
Copy link
Contributor Author

jckarter commented Jun 8, 2016

@swift-ci Please test and merge

@swift-ci swift-ci merged commit b3a9656 into swiftlang:master Jun 8, 2016
@lattner
Copy link
Contributor

lattner commented Jun 21, 2016

Awesome, please mention this in the changelog!

jckarter added a commit that referenced this pull request Jun 21, 2016
colemancda pushed a commit to colemancda/swift that referenced this pull request Jun 21, 2016
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.

5 participants