mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
[clang-scan-deps] cast Result to ErrorOr<unique_ptr<vfs::File>> explicitly to avoid s390x-linux buildbot failure
llvm-svn: 371664
This commit is contained in:
@@ -203,7 +203,8 @@ createFile(const CachedFileSystemEntry *Entry,
|
||||
if (!Entry->getPPSkippedRangeMapping().empty() && PPSkipMappings)
|
||||
(*PPSkipMappings)[Result->getBufferPtr()] =
|
||||
&Entry->getPPSkippedRangeMapping();
|
||||
return Result;
|
||||
return llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>(
|
||||
std::unique_ptr<llvm::vfs::File>(std::move(Result)));
|
||||
}
|
||||
|
||||
} // end anonymous namespace
|
||||
|
||||
Reference in New Issue
Block a user