Skip to content

Push the debug info for the artificial error inout argument up to SIL. #5481

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 2 commits into from
Oct 27, 2016

Conversation

adrian-prantl
Copy link
Contributor

Previously IRGen was using a heuristic to assign the argument number
to the $error variable that was not generally correct for optimizaed
code. This patch inserts a debug_value instruction in SILGen and thus
assigns the ArgNo together with all the other function arguments. This
is more robust and faster than than the old heuristic.

rdar://problem/28748323

@adrian-prantl
Copy link
Contributor Author

@SwiftCI please test and merge

@adrian-prantl
Copy link
Contributor Author

@swift-ci please test and merge

Previously IRGen was using a heuristic to assign the argument number
to the $error variable that was not generally correct for optimizaed
code. This patch inserts a debug_value instruction in SILGen and thus
assigns the ArgNo together with all the other function arguments. This
is more robust and faster than than the old heuristic.

<rdar://problem/28748323>
@adrian-prantl
Copy link
Contributor Author

@swift-ci please test and merge

@adrian-prantl
Copy link
Contributor Author

@swift-ci please test OS X platform

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - dc016f706c2ffbd4ae7457e88d4628d7ae88fbcc
Test requested by - @adrian-prantl

@adrian-prantl
Copy link
Contributor Author

@swift-ci please test OS X platform

@adrian-prantl adrian-prantl merged commit bf2de4a into swiftlang:master Oct 27, 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.

2 participants