[PATCH] D82742: Correctly track gcov update

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 30 11:24:41 PDT 2020


serge-sans-paille updated this revision to Diff 274543.

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82742/new/

https://reviews.llvm.org/D82742

Files:
  llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp


Index: llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
===================================================================
--- llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
+++ llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
@@ -844,7 +844,6 @@
         continue;
       // TODO: Functions using scope-based EH are currently not supported.
       if (isUsingScopeBasedEH(F)) continue;
-      if (!Result) Result = true;
 
       DenseMap<std::pair<BasicBlock *, BasicBlock *>, unsigned> EdgeToCounter;
       unsigned Edges = 0;
@@ -939,6 +938,7 @@
     Builder.CreateRetVoid();
 
     appendToGlobalCtors(*M, F, 0);
+    Result = true;
   }
 
   return Result;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82742.274543.patch
Type: text/x-patch
Size: 682 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200630/f0e8d2ee/attachment.bin>


More information about the llvm-commits mailing list