summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CachePruning.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-06-23 17:13:51 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-06-23 17:13:51 +0000
commit30aaa2f3f6a2c2e6f62821c73655e36b152b93d9 (patch)
treeca5df392075d73694939779a7a828434b539baec /llvm/lib/Support/CachePruning.cpp
parent36d43dd9588b7b53162fafeb5646daaf07891fd5 (diff)
downloadbcm5719-llvm-30aaa2f3f6a2c2e6f62821c73655e36b152b93d9.tar.gz
bcm5719-llvm-30aaa2f3f6a2c2e6f62821c73655e36b152b93d9.zip
Make the size specification for cache_size_bytes case insensitive.
llvm-svn: 306129
Diffstat (limited to 'llvm/lib/Support/CachePruning.cpp')
-rw-r--r--llvm/lib/Support/CachePruning.cpp2
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();
OpenPOWER on IntegriCloud