Skip to content

Commit f1d5762

Browse files
authored
Merge pull request #7459 from etcwilde/ewilde/clang6-error-passing
Older versions of clang don't implicitly elide copy
2 parents 586653c + 9221663 commit f1d5762

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
@@ -523,7 +523,7 @@ Expected<std::optional<int>> CompileJobCache::replayCachedResult(
523523
.replayCachedResult(CacheKey, CachedResult,
524524
/*JustComputedResult*/ false)
525525
.moveInto(Ret))
526-
return E;
526+
return std::move(E);
527527

528528
if (Clang.getDiagnostics().hasErrorOccurred())
529529
return llvm::createStringError(llvm::inconvertibleErrorCode(),

0 commit comments

Comments
 (0)