diff options
Diffstat (limited to 'llvm/lib/Support/CachePruning.cpp')
-rw-r--r-- | llvm/lib/Support/CachePruning.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CachePruning.cpp b/llvm/lib/Support/CachePruning.cpp index 303ad219746..57342288e7d 100644 --- a/llvm/lib/Support/CachePruning.cpp +++ b/llvm/lib/Support/CachePruning.cpp @@ -94,7 +94,7 @@ llvm::parseCachePruningPolicy(StringRef PolicyStr) { Policy.MaxSizePercentageOfAvailableSpace = Size; } else if (Key == "cache_size_bytes") { uint64_t Mult = 1; - switch (Value.back()) { + switch (tolower(Value.back())) { case 'k': Mult = 1024; Value = Value.drop_back(); |