diff options
-rw-r--r-- | llvm/lib/Support/CachePruning.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/CachePruning.cpp b/llvm/lib/Support/CachePruning.cpp index 57342288e7d..60d0964f276 100644 --- a/llvm/lib/Support/CachePruning.cpp +++ b/llvm/lib/Support/CachePruning.cpp @@ -79,9 +79,9 @@ llvm::parseCachePruningPolicy(StringRef PolicyStr) { return DurationOrErr.takeError(); Policy.Expiration = *DurationOrErr; } else if (Key == "cache_size") { - if (Value.back() != '%') - return make_error<StringError>("'" + Value + "' must be a percentage", - inconvertibleErrorCode()); + if (Value.back() != '%') + return make_error<StringError>("'" + Value + "' must be a percentage", + inconvertibleErrorCode()); StringRef SizeStr = Value.drop_back(); uint64_t Size; if (SizeStr.getAsInteger(0, Size)) |