Skip to content

Conversation

@nkcsgexi
Copy link
Contributor

@nkcsgexi nkcsgexi commented Dec 5, 2016

rdar://problem/29308878
rdar://problem/28387632

@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Dec 5, 2016

@swift-ci Please smoke test and merge

1 similar comment
@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Dec 5, 2016

@swift-ci Please smoke test and merge

@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Dec 5, 2016

@swift-ci please smoke test

1 similar comment
@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Dec 6, 2016

@swift-ci please smoke test


// Avoid mangling nameless entity. This may happen in erroneous code as code
// completion.
if (!decl->hasName())
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does it not have a name? Would it be better to ensure a name is always set? Or maybe we shouldn't be trying to mangle the entity in the first place? Or perhaps we should fix the mangler to just not allow this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is to improve the mangler to allow nameless entities, in this test case let:{. As far as i know, we don't have a default name to set on the var decl lead by let, so to fix mangler to be more forgiving is a reasonable solution.

@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Dec 6, 2016

@swift-ci please smoke test

@nkcsgexi nkcsgexi merged commit 1f7a5f4 into swiftlang:master Dec 6, 2016
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