Fix pessimising moves.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297928 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Peter Collingbourne 2017-03-16 03:54:38 +00:00
parent 2995c258a5
commit 13c3208403

View File

@ -71,12 +71,12 @@ llvm::parseCachePruningPolicy(StringRef PolicyStr) {
if (Key == "prune_interval") {
auto DurationOrErr = parseDuration(Value);
if (!DurationOrErr)
return std::move(DurationOrErr.takeError());
return DurationOrErr.takeError();
Policy.Interval = *DurationOrErr;
} else if (Key == "prune_after") {
auto DurationOrErr = parseDuration(Value);
if (!DurationOrErr)
return std::move(DurationOrErr.takeError());
return DurationOrErr.takeError();
Policy.Expiration = *DurationOrErr;
} else if (Key == "cache_size") {
if (Value.back() != '%')