]> granicus.if.org Git - llvm/commitdiff
Fix a misleading indentation warning.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 23 Jun 2017 17:17:47 +0000 (17:17 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 23 Jun 2017 17:17:47 +0000 (17:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306130 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/CachePruning.cpp

index 57342288e7dcc8ef32e0b04ac900c4dcd2774d07..60d0964f2764637aeae31911cd4b08191b51a2e9 100644 (file)
@@ -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))