Skip to content

[ASTVerifier] Crash in a nice way if the last GenericEnvironment is NULL #5348

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 24, 2016

Conversation

JaSpa
Copy link
Contributor

@JaSpa JaSpa commented Oct 18, 2016

On every pushScope the generic environment of this scope is appended
to GenericEnv. If the pushed DeclContext isn't generic, NULL is
pushed leading to a crash only in DenseMap::find if some archetypes
escaped their generic context.

On every `pushScope` the generic environment of this scope is appended
to `GenericEnv`.  If the pushed `DeclContext` isn't generic, `NULL` is
pushed leading to a crash only in `DenseMap::find` if some archetypes
escaped their generic context.
@slavapestov
Copy link
Contributor

Good catch.

@slavapestov
Copy link
Contributor

@swift-ci Please smoke test and merge

@JaSpa
Copy link
Contributor Author

JaSpa commented Oct 19, 2016

The failure seems unrelated and should be fixed by #5372

@slavapestov
Copy link
Contributor

@swift-ci Please smoke test and merge

@slavapestov slavapestov self-assigned this Oct 24, 2016
@swift-ci swift-ci merged commit dbfd6f5 into swiftlang:master Oct 24, 2016
@JaSpa JaSpa deleted the astverifier-null-crash branch October 24, 2016 13:40
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