Skip to content

Commit 50d0ce6

Browse files
[CAS] Fix build failure from #114099 using gcc (#158697)
Fix a buildbot failure on some bots using gcc: ``` MappedFileRegionArena.cpp:275:10: error: could not convert ‘Result’ from ‘llvm::cas::MappedFileRegionArena’ to ‘llvm::Expected<llvm::cas::MappedFileRegionArena>’ ``` This is caused by RVO not activated causing the type check error.
1 parent f4eab92 commit 50d0ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CAS/MappedFileRegionArena.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ Expected<MappedFileRegionArena> MappedFileRegionArena::create(
272272

273273
// Release the shared lock so it can be closed in destoryImpl().
274274
SharedFileLock->release();
275-
return Result;
275+
return std::move(Result);
276276
}
277277

278278
void MappedFileRegionArena::destroyImpl() {

0 commit comments

Comments
 (0)