[llvm] c5abe89 - [StatCacheFileSystem] Attempt to fix build

Fred Riss via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 18 14:47:19 PST 2023


Author: Fred Riss
Date: 2023-01-18T14:46:55-08:00
New Revision: c5abe893120b115907376359a5809229a9f9608a

URL: https://github.com/llvm/llvm-project/commit/c5abe893120b115907376359a5809229a9f9608a
DIFF: https://github.com/llvm/llvm-project/commit/c5abe893120b115907376359a5809229a9f9608a.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/lib/Support/StatCacheFileSystem.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/StatCacheFileSystem.cpp b/llvm/lib/Support/StatCacheFileSystem.cpp
index 96fd32bf5082..4633a0d885d9 100644
--- a/llvm/lib/Support/StatCacheFileSystem.cpp
+++ b/llvm/lib/Support/StatCacheFileSystem.cpp
@@ -156,7 +156,7 @@ StatCacheFileSystem::create(std::unique_ptr<MemoryBuffer> 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() +


        


More information about the llvm-commits mailing list