Skip to content

Conversation

ravikandhadai
Copy link
Contributor

@ravikandhadai ravikandhadai commented Mar 11, 2020

This bug happens in code where a exclusivity error has already been diagnosed. Passing inout to the log calls results in a compiler error since they are autoclosured and the closure is @escaping. However, this also results in a crash in the OSLogOptimization pass which hides the error from getting displayed. This commit fixes this crash

rdar://problem/60015040

when a SIL address is captured in a closure passed to the log calls.

<rdar://problem/60015040>
@ravikandhadai
Copy link
Contributor Author

@swift-ci Please test and merge

@swift-ci swift-ci merged commit 59a9ee8 into swiftlang:master Mar 11, 2020
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