Skip to content

Commit 5ef4c55

Browse files
authored
Merge pull request #7676 from etcwilde/ewilde/fix-move
Move non-copyable types
2 parents 57e316a + 6536080 commit 5ef4c55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/MCCAS/MCCASDebugV1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ Expected<dwarf::Attribute> AbbrevEntryReader::readAttr() {
291291
static Expected<int64_t> handleImplicitConst(BinaryStreamReader &Reader) {
292292
int64_t ImplicitVal;
293293
if (auto E = Reader.readSLEB128(ImplicitVal))
294-
return E;
294+
return std::move(E);
295295
return ImplicitVal;
296296
}
297297

llvm/tools/llvm-cas/llvm-cas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static Expected<ObjectProxy> ingestFileSystemImpl(ObjectStore &CAS,
519519
llvm::DenseSet<llvm::sys::fs::UniqueID> SeenDirectories;
520520
for (auto &Path : Paths)
521521
if (Error E = recursiveAccess(**FS, Path, SeenDirectories))
522-
return E;
522+
return std::move(E);
523523

524524
return (*FS)->createTreeFromNewAccesses(
525525
[&](const llvm::vfs::CachedDirectoryEntry &Entry,

0 commit comments

Comments
 (0)