[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:
Alex Lorenz
2019-09-11 21:00:13 +00:00
parent a685f5161d
commit 428d92832c

View File

@@ -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