mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-01 07:11:45 +00:00
CodeGen: Let the BumpPtrAllocator free the elements of indexList
The indexList's nodes are all allocated on a BumpPtrAllocator, so it's more efficient to let them be freed when it goes away, rather than deleting them directly. This is a follow up to r254794. llvm-svn: 254808
This commit is contained in:
parent
3fcdebf45b
commit
62356515cc
@ -376,6 +376,11 @@ namespace llvm {
|
||||
initializeSlotIndexesPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
~SlotIndexes() {
|
||||
// The indexList's nodes are all allocated in the BumpPtrAllocator.
|
||||
indexList.clearAndLeakNodesUnsafely();
|
||||
}
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &au) const override;
|
||||
void releaseMemory() override;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user