[llvm] r217945 - llvm-cov: Fix a typo

Justin Bogner mail at justinbogner.com
Wed Sep 17 01:12:13 PDT 2014


Author: bogner
Date: Wed Sep 17 03:12:12 2014
New Revision: 217945

URL: http://llvm.org/viewvc/llvm-project?rev=217945&view=rev
Log:
llvm-cov: Fix a typo

It doesn't make sense for this default parameter to be false, since
false makes the function a no-op.

Modified:
    llvm/trunk/tools/llvm-cov/RenderingSupport.h

Modified: llvm/trunk/tools/llvm-cov/RenderingSupport.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/RenderingSupport.h?rev=217945&r1=217944&r2=217945&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/RenderingSupport.h (original)
+++ llvm/trunk/tools/llvm-cov/RenderingSupport.h Wed Sep 17 03:12:12 2014
@@ -49,7 +49,7 @@ inline raw_ostream &operator<<(const Col
 /// 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);





More information about the llvm-commits mailing list