Skip to content

Conversation

@nathawes
Copy link
Contributor

@nathawes nathawes commented Mar 30, 2018

We were hitting an unreachable in visitDynamicMemberRefExpr in ExprRewriter when re-typechecking within salvage. Check for these earlier (in CSGen) and update SanitizeExpr to handle them.

@nathawes nathawes requested a review from xedin March 30, 2018 18:13
@nathawes
Copy link
Contributor Author

@swift-ci please test

@nathawes nathawes force-pushed the reachable-unreachables branch from c79d7e7 to 59db0ca Compare March 30, 2018 23:01
@nathawes
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - c79d7e7fe8dd4058e675c351bddbc42746a19ea0

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - c79d7e7fe8dd4058e675c351bddbc42746a19ea0

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah actually this has to use mock-sdk as an option, can you please fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, sure. Like below?

// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -verify
// REQUIRES: objc_interop

import Foundation
...

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes! Sorry U didn’t notice it right away...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries - thanks for reviewing it! I'll update shortly.

…writer and update SanitizeExpr to handle them

We were hitting an unreachable in visitDynamicMemberExpr in ExprRewriter when
re-typechecking during a salvage. Check for these earlier (in CSGen) and update
SanitizeExpr to handle them.

Resolves rdar://problem/39055736
@nathawes nathawes force-pushed the reachable-unreachables branch from 59db0ca to 0145439 Compare March 31, 2018 00:47
@nathawes
Copy link
Contributor Author

@swift-ci please test and merge

@nathawes
Copy link
Contributor Author

nathawes commented Apr 2, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Apr 2, 2018

Build failed
Swift Test Linux Platform
Git Sha - 59db0ca03e054c5817c4191151c60d35747f6378

@swift-ci
Copy link
Contributor

swift-ci commented Apr 2, 2018

Build failed
Swift Test OS X Platform
Git Sha - 59db0ca03e054c5817c4191151c60d35747f6378

@nathawes nathawes merged commit d367dfc into swiftlang:master Apr 2, 2018
@nathawes nathawes deleted the reachable-unreachables branch April 2, 2018 19:32
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.

3 participants