[PATCH] Coverage: fix the missing output stream in recursive call

Alex Lorenz arphaman at gmail.com
Tue Jul 29 09:11:22 PDT 2014


Hi bogner, bob.wilson,

Fixes the missing output stream parameter in recursive call in CoverageMappingContext::dump

http://reviews.llvm.org/D4707

Files:
  lib/ProfileData/CoverageMapping.cpp

Index: lib/ProfileData/CoverageMapping.cpp
===================================================================
--- lib/ProfileData/CoverageMapping.cpp
+++ lib/ProfileData/CoverageMapping.cpp
@@ -101,9 +101,9 @@
       return;
     const auto &E = Expressions[C.getExpressionID()];
     OS << '(';
-    dump(E.LHS);
+    dump(E.LHS, OS);
     OS << (E.Kind == CounterExpression::Subtract ? " - " : " + ");
-    dump(E.RHS);
+    dump(E.RHS, OS);
     OS << ')';
     break;
   }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4707.11984.patch
Type: text/x-patch
Size: 478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140729/b24531d0/attachment.bin>


More information about the llvm-commits mailing list