summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Transforms/IPO/Attributor.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index 3f4087b9c95..1aafab028ba 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -694,7 +694,11 @@ struct Attributor {
: InfoCache(InfoCache), DepRecomputeInterval(DepRecomputeInterval),
Whitelist(Whitelist) {}
- ~Attributor() { DeleteContainerPointers(AllAbstractAttributes); }
+ ~Attributor() {
+ DeleteContainerPointers(AllAbstractAttributes);
+ for (auto &It : ArgumentReplacementMap)
+ DeleteContainerPointers(It.second);
+ }
/// Run the analyses until a fixpoint is reached or enforced (timeout).
///
OpenPOWER on IntegriCloud