[gcov] Fix memory leak due to BranchProbabilityInfoWrapperPass
authorFangrui Song <i@maskray.me>
Sun, 13 Sep 2020 07:44:32 +0000 (00:44 -0700)
committerFangrui Song <i@maskray.me>
Sun, 13 Sep 2020 07:44:32 +0000 (00:44 -0700)
This is weird.

llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp

index 437063e..68199f6 100644 (file)
@@ -193,7 +193,6 @@ public:
 
   void getAnalysisUsage(AnalysisUsage &AU) const override {
     AU.addRequired<BlockFrequencyInfoWrapperPass>();
-    AU.addRequired<BranchProbabilityInfoWrapperPass>();
     AU.addRequired<TargetLibraryInfoWrapperPass>();
   }