summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/IPO/PartialInlining.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/PartialInlining.cpp b/llvm/lib/Transforms/IPO/PartialInlining.cpp
index 739b0dae314..8dff2fb3be8 100644
--- a/llvm/lib/Transforms/IPO/PartialInlining.cpp
+++ b/llvm/lib/Transforms/IPO/PartialInlining.cpp
@@ -591,6 +591,10 @@ void PartialInlinerImpl::computeCallsiteToProfCountMap(
else
CallSiteToProfCountMap[User] = 0;
}
+ if (!GetBFI) {
+ if (CurrentCallerBFI)
+ delete CurrentCallerBFI;
+ }
}
Function *PartialInlinerImpl::unswitchFunction(Function *F) {
OpenPOWER on IntegriCloud