Skip to content

Commit

Permalink
Fix a misleading indentation warning.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306130 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
pcc committed Jun 23, 2017
1 parent 5974d48 commit 5a653c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Support/CachePruning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5a653c2

Please sign in to comment.