From 30aaa2f3f6a2c2e6f62821c73655e36b152b93d9 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Fri, 23 Jun 2017 17:13:51 +0000 Subject: Make the size specification for cache_size_bytes case insensitive. llvm-svn: 306129 --- llvm/lib/Support/CachePruning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support') 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(); -- cgit v1.2.3