[llvm] 5f4e9bf - [gcov] Fix memory leak due to BranchProbabilityInfoWrapperPass

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 13 00:45:47 PDT 2020


Author: Fangrui Song
Date: 2020-09-13T00:44:32-07:00
New Revision: 5f4e9bf6416e45eba483a4e5e263749989fdb3b3

URL: https://github.com/llvm/llvm-project/commit/5f4e9bf6416e45eba483a4e5e263749989fdb3b3
DIFF: https://github.com/llvm/llvm-project/commit/5f4e9bf6416e45eba483a4e5e263749989fdb3b3.diff

LOG: [gcov] Fix memory leak due to BranchProbabilityInfoWrapperPass

This is weird.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
index 437063eef6f9..68199f6379d4 100644
--- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
@@ -193,7 +193,6 @@ class GCOVProfilerLegacyPass : public ModulePass {
 
   void getAnalysisUsage(AnalysisUsage &AU) const override {
     AU.addRequired<BlockFrequencyInfoWrapperPass>();
-    AU.addRequired<BranchProbabilityInfoWrapperPass>();
     AU.addRequired<TargetLibraryInfoWrapperPass>();
   }
 


        


More information about the llvm-commits mailing list