mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Transfer the buffer for the module documentation file only when it exists.
More fallout from LLVM r212408. Swift SVN r19613
This commit is contained in:
@@ -61,7 +61,8 @@ openModuleFiles(StringRef DirName, StringRef ModuleFilename,
|
||||
return ModuleDocOrErr.getError();
|
||||
}
|
||||
ModuleBuffer = std::move(ModuleOrErr.get());
|
||||
ModuleDocBuffer = std::move(ModuleDocOrErr.get());
|
||||
if (ModuleDocOrErr)
|
||||
ModuleDocBuffer = std::move(ModuleDocOrErr.get());
|
||||
return std::error_code();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user