Skip to content

Commit 5f5bccc

Browse files
authored
Merge pull request #8725 from etcwilde/ewilde/5.10-deleted-constructor
Fixing Debian 11: llvm::Error deleted constructor
2 parents 5dc9d56 + 90350dc commit 5f5bccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Frontend/CompileJobCache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ Expected<std::optional<int>> CompileJobCache::replayCachedResult(
545545
.replayCachedResult(CacheKey, CachedResult,
546546
/*JustComputedResult*/ false)
547547
.moveInto(Ret))
548-
return E;
548+
return std::move(E);
549549

550550
if (Clang.getDiagnostics().hasErrorOccurred())
551551
return llvm::createStringError(llvm::inconvertibleErrorCode(),

0 commit comments

Comments
 (0)