Skip to content

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