Skip to content

[AST] Initialize Target of break/continue with nullptr #16055

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
Apr 20, 2018

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Apr 20, 2018

Otherwise, it's never initialized in error case. This doesn't affect normal compilation because it doensn't reach SILGen (the only user) due to typecheck error. However, IDE refactoring uses this regardless of the error.

rdar://problem/33972653

Otherwise, it's never initialized. This doesn't affect normal compilation
because it doensn't reach only-user SILGen due to typecheck error. However,
IDE refactoring uses this regardless of the error.

rdar://problem/33972653
@rintaro
Copy link
Member Author

rintaro commented Apr 20, 2018

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Apr 20, 2018

Not sure who should review this. @slavapestov or @jrose-apple ?

Copy link
Contributor

@jrose-apple jrose-apple left a comment

Choose a reason for hiding this comment

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

Yikes! Good call. MSan, anyone?

@rintaro rintaro merged commit 1a57377 into swiftlang:master Apr 20, 2018
@rintaro rintaro deleted the ast-breakcontinue-target branch April 20, 2018 23:09
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