Skip to content
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

[gardening] Remove unused variables #7667

Merged
merged 1 commit into from Feb 22, 2017
Merged

[gardening] Remove unused variables #7667

merged 1 commit into from Feb 22, 2017

Conversation

practicalswift
Copy link
Contributor

No description provided.

@practicalswift
Copy link
Contributor Author

@swift-ci please test

@@ -290,13 +290,13 @@ static bool hasUnhandledError(ArrayRef<ASTNode> Nodes) {
if (DCS->isSyntacticallyExhaustive())
return false;
Throwing = true;
} else if (auto TS = dyn_cast<ThrowStmt>(S)) {
} else if (dyn_cast<ThrowStmt>(S)) {
Copy link
Member

Choose a reason for hiding this comment

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

If the result is unused, please use isa instead of dyn_cast

@practicalswift
Copy link
Contributor Author

@slavapestov Good point, fixed!

@practicalswift
Copy link
Contributor Author

@swift-ci please smoke test and merge

@practicalswift
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Collaborator

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - bebdee62c1de5b356608df76ba22c8c27089bc86
Test requested by - @practicalswift

@swift-ci
Copy link
Collaborator

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - bebdee62c1de5b356608df76ba22c8c27089bc86
Test requested by - @practicalswift

@practicalswift practicalswift merged commit beb9bcc into apple:master Feb 22, 2017
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.

None yet

3 participants