llvm-cov: Fix a typo
authorJustin Bogner <mail@justinbogner.com>
Wed, 17 Sep 2014 08:12:12 +0000 (08:12 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 17 Sep 2014 08:12:12 +0000 (08:12 +0000)
It doesn't make sense for this default parameter to be false, since
false makes the function a no-op.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217945 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-cov/RenderingSupport.h

index 619a8a68a5654c2a253ee62a341e32d80e50cdc2..4778501305fa9a8181f98177f1e088b169e7bc2d 100644 (file)
@@ -49,7 +49,7 @@ inline raw_ostream &operator<<(const ColoredRawOstream &OS, T &&Value) {
 /// is true. Returns an object that resets the color when destroyed.
 inline ColoredRawOstream colored_ostream(raw_ostream &OS,
                                          raw_ostream::Colors Color,
-                                         bool IsColorUsed = false) {
+                                         bool IsColorUsed = true) {
   if (IsColorUsed)
     OS.changeColor(Color);
   return ColoredRawOstream(OS, IsColorUsed);