[PATCH] D82742: Correctly track gcov update

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 01:02:56 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGffee80405344: Correctly track GCOVProfiling IR update (authored by serge-sans-paille).

Repository:
  rG LLVM Github Monorepo

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.274706.patch
Type: text/x-patch
Size: 682 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200701/8253e321/attachment.bin>


More information about the llvm-commits mailing list