SerializeLoc: address Jordan's previous code review comments

This commit is contained in:
Xi Ge
2019-10-22 18:35:55 -07:00
parent 4edefa8e14
commit 0abcc1db40
7 changed files with 28 additions and 34 deletions

View File

@@ -267,10 +267,10 @@ std::error_code SerializedModuleLoaderBase::openModuleDocFile(
void
SerializedModuleLoaderBase::openModuleSourceInfoFileIfPresent(
AccessPathElem ModuleID,
StringRef ModulePath,
StringRef ModuleSourceInfoFilename,
std::unique_ptr<llvm::MemoryBuffer> *ModuleSourceInfoBuffer) {
AccessPathElem ModuleID,
StringRef ModulePath,
StringRef ModuleSourceInfoFilename,
std::unique_ptr<llvm::MemoryBuffer> *ModuleSourceInfoBuffer) {
if (!ModuleSourceInfoBuffer)
return;
llvm::vfs::FileSystem &FS = *Ctx.SourceMgr.getFileSystem();