From c5abe893120b115907376359a5809229a9f9608a Mon Sep 17 00:00:00 2001 From: Fred Riss Date: Wed, 18 Jan 2023 14:46:55 -0800 Subject: [PATCH] [StatCacheFileSystem] Attempt to fix build Some bots are not happy with the way Error is returned here. Let's see if std::moving it fixes this. --- llvm/lib/Support/StatCacheFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/StatCacheFileSystem.cpp b/llvm/lib/Support/StatCacheFileSystem.cpp index 96fd32b..4633a0d 100644 --- a/llvm/lib/Support/StatCacheFileSystem.cpp +++ b/llvm/lib/Support/StatCacheFileSystem.cpp @@ -156,7 +156,7 @@ StatCacheFileSystem::create(std::unique_ptr CacheBuffer, uint64_t ValidityToken; if (auto E = validateCacheFile(*CacheBuffer, BaseDir, IsCaseSensitive, VersionMatch, ValidityToken)) - return E; + return std::move(E); if (!VersionMatch) { return createStringError(inconvertibleErrorCode(), CacheBuffer->getBufferIdentifier() + -- 2.7.4