[PATCH] D84747: [BPI] Fix memory leak reported by sanitizer bots

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 28 05:54:02 PDT 2020


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG412b3932c661: [BPI] Fix memory leak reported by sanitizer bots (authored by Evgeniy Brevnov <ybrevnov at azul.com>).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84747

Files:
  llvm/lib/Analysis/BranchProbabilityInfo.cpp


Index: llvm/lib/Analysis/BranchProbabilityInfo.cpp
===================================================================
--- llvm/lib/Analysis/BranchProbabilityInfo.cpp
+++ llvm/lib/Analysis/BranchProbabilityInfo.cpp
@@ -1178,7 +1178,7 @@
 
   PostDominatedByUnreachable.clear();
   PostDominatedByColdCall.clear();
-  SccI.release();
+  SccI.reset();
 
   if (PrintBranchProb &&
       (PrintBranchProbFuncName.empty() ||


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84747.281204.patch
Type: text/x-patch
Size: 421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200728/a9f91424/attachment-0001.bin>


More information about the llvm-commits mailing list