Skip to content

SerializeLoc: address Jordan's previous code review comments. NFC #27845

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 23, 2019

Conversation

nkcsgexi
Copy link
Contributor

No description provided.

@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

@nkcsgexi nkcsgexi merged commit bfd9e0a into swiftlang:master Oct 23, 2019
@@ -97,7 +97,7 @@ class SerializedModuleLoaderBase : public ModuleLoader {
openModuleSourceInfoFileIfPresent(AccessPathElem ModuleID,
StringRef ModulePath,
StringRef ModuleSourceInfoFileName,
std::unique_ptr<llvm::MemoryBuffer> *ModuleSourceInfoBuffer);
std::unique_ptr<llvm::MemoryBuffer> *ModuleSourceInfoBuffer);
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, sorry, when this left-alignment is necessary it's applied to all arguments for consistency. (We should all have clang-formats lying around…)

Buffer.append(Text);
Buffer.push_back('\0');
}
return IndexMap[Text];
return (*IterAndIsNew.first).getValue();
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: this is IterAndIsNew.first()->getValue(), no?

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