llvm.org GIT mirror llvm / eada3a8
ARM: Use SpecificBumpPtrAllocator to fix leak introduced in r241920 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241951 91177308-0d34-0410-b5e6-96231b3b80d8 Matthias Braun 5 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
115115 /// Whether the instructions can be merged into a ldrd/strd instruction.
116116 bool CanMergeToLSDouble;
117117 };
118 BumpPtrAllocator Allocator;
118 SpecificBumpPtrAllocator Allocator;
119119 SmallVector Candidates;
120120 SmallVector MergeBaseCandidates;
121121
995995 }
996996
997997 // Form a candidate from the Ops collected so far.
998 MergeCandidate *Candidate = new(Allocator) MergeCandidate;
998 MergeCandidate *Candidate = new(Allocator.Allocate()) MergeCandidate;
999999 for (unsigned C = SIndex, CE = SIndex + Count; C < CE; ++C)
10001000 Candidate->Instrs.push_back(MemOps[C].MI);
10011001 Candidate->LatestMIIdx = Latest - SIndex;
18481848 Modified |= MergeReturnIntoLDM(MBB);
18491849 }
18501850
1851 Allocator.Reset();
1851 Allocator.DestroyAll();
18521852 return Modified;
18531853 }
18541854