Work around a compiler regression affecting exit test value capturing. #1171
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR works around a compiler regression (apparently caused by the change in swiftlang/swift#82326) as of Swift acbdfef4f4d71b1 that causes our helper macro
#__capturedValue()
to be incorrectly expanded (wrong overload is selected.) The workaround is to pass captured values as individual arguments instead of as a tuple. (The workaround is temporary because the use of individual arguments makes the trailingcomment
argument potentially ambiguous. We'll go back to using a tuple when the compiler bug is fixed.)Works around rdar://154221449.
Checklist: