[llvm] r306130 - Fix a misleading indentation warning.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 23 10:17:47 PDT 2017


Author: pcc
Date: Fri Jun 23 12:17:47 2017
New Revision: 306130

URL: http://llvm.org/viewvc/llvm-project?rev=306130&view=rev
Log:
Fix a misleading indentation warning.

Modified:
    llvm/trunk/lib/Support/CachePruning.cpp

Modified: llvm/trunk/lib/Support/CachePruning.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CachePruning.cpp?rev=306130&r1=306129&r2=306130&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CachePruning.cpp (original)
+++ llvm/trunk/lib/Support/CachePruning.cpp Fri Jun 23 12:17:47 2017
@@ -79,9 +79,9 @@ llvm::parseCachePruningPolicy(StringRef
         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))




More information about the llvm-commits mailing list