mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 06:00:28 +00:00
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:
parent
2995c258a5
commit
13c3208403
@ -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() != '%')
|
||||
|
Loading…
Reference in New Issue
Block a user