Skip to content

[Serialization] Simplify some code, tentatively fixing rdar://31812518. #9017

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 2 commits into from
Apr 26, 2017
Merged

[Serialization] Simplify some code, tentatively fixing rdar://31812518. #9017

merged 2 commits into from
Apr 26, 2017

Conversation

nkcsgexi
Copy link
Contributor

No description provided.

@nkcsgexi nkcsgexi requested a review from jrose-apple April 25, 2017 23:34
@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

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.

Good call. Twine is just too tricky to use in non-immediate contexts.

@@ -3845,7 +3845,7 @@ class YamlGroupInputParser {
static llvm::StringMap<pFileNameToGroupNameMap> AllMaps;

bool parseRoot(FileNameToGroupNameMap &Map, llvm::yaml::Node *Root,
const llvm::Twine &ParentName) {
std::string &ParentName) {
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for & here. In fact, you can probably get away with StringRef.

@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

@nkcsgexi nkcsgexi merged commit 46d3fe1 into swiftlang:master Apr 26, 2017
@nkcsgexi nkcsgexi deleted the rdar-31812518 branch April 26, 2017 00:48
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