projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39108f4
)
[BPI] Fix memory leak reported by sanitizer bots
author
Evgeniy Brevnov
<ybrevnov@azul.com>
Tue, 28 Jul 2020 12:50:40 +0000
(19:50 +0700)
committer
Evgeniy Brevnov
<ybrevnov@azul.com>
Tue, 28 Jul 2020 12:53:46 +0000
(19:53 +0700)
There is a silly mistake where release() is used instead of reset() for free resources of unique pointer.
Reviewed By: ebrevnov
Differential Revision: https://reviews.llvm.org/D84747
llvm/lib/Analysis/BranchProbabilityInfo.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/BranchProbabilityInfo.cpp
b/llvm/lib/Analysis/BranchProbabilityInfo.cpp
index
195fc69
..
7e34f3b
100644
(file)
--- a/
llvm/lib/Analysis/BranchProbabilityInfo.cpp
+++ b/
llvm/lib/Analysis/BranchProbabilityInfo.cpp
@@
-1178,7
+1178,7
@@
void BranchProbabilityInfo::calculate(const Function &F, const LoopInfo &LI,
PostDominatedByUnreachable.clear();
PostDominatedByColdCall.clear();
- SccI.re
lease
();
+ SccI.re
set
();
if (PrintBranchProb &&
(PrintBranchProbFuncName.empty() ||