Skip to content

[Serialization] Handle llvm::Error in member deserialization recovery #16957

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
Jun 19, 2018

Conversation

jrose-apple
Copy link
Contributor

llvm::Expected/llvm::Error require that the error is not just checked but explicitly handled. Since we're currently recovering as if nothing happened, we need to use llvm::consumeError to throw the error info away.

rdar://problem/40738521

llvm::Expected/llvm::Error require that the error is not just checked
but explicitly handled. Since we're currently recovering as if nothing
happened, we need to use llvm::consumeError to throw the error info
away.

rdar://problem/40738521
@jrose-apple jrose-apple requested a review from graydon June 1, 2018 23:44
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple
Copy link
Contributor Author

Low-priority post-WWDC ping.

Copy link
Contributor

@graydon graydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, sorry for delay. This looks correct to me.

@jrose-apple jrose-apple merged commit e840330 into swiftlang:master Jun 19, 2018
@jrose-apple jrose-apple deleted the fulfilling-expectations branch June 19, 2018 17:14
jrose-apple added a commit to jrose-apple/swift that referenced this pull request Jun 19, 2018
…swiftlang#16957)

llvm::Expected/llvm::Error require that the error is not just checked
but explicitly handled. Since we're currently recovering as if nothing
happened, we need to use llvm::consumeError to throw the error info
away.

rdar://problem/40738521
(cherry picked from commit e840330)
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