Skip to content

[serialization] Yet Another Misuse of ArrayRef #5216

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
Oct 10, 2016

Conversation

jrose-apple
Copy link
Contributor

I found this one by guessing which file was the problem, compiling it with -O0, and seeing if things got better, then marking the problematic ArrayRef constructors as deprecated and seeing if we were using any in that file (which we were). This is not a good workflow.

rdar://problem/28699599

I wonder if we can assert that the lifetime is valid or something.

rdar://problem/28699599
@jrose-apple
Copy link
Contributor Author

@bob-wilson Can you review this?

@swift-ci Please smoke test

@bob-wilson
Copy link
Contributor

LGTM

@jrose-apple jrose-apple merged commit 5d3a7f7 into swiftlang:master Oct 10, 2016
@jrose-apple jrose-apple deleted the ModuleFile-ArrayRef-issue branch October 10, 2016 23:24
benlangmuir pushed a commit to benlangmuir/swift that referenced this pull request Oct 19, 2016
I wonder if we can assert that the lifetime is valid or something.

rdar://problem/28699599
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