diff options
author | Dan Gohman <gohman@apple.com> | 2010-03-18 18:49:47 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-03-18 18:49:47 +0000 |
commit | 7616a1ef5c411f4503cc99bf0a12a863551edf95 (patch) | |
tree | 4ec39913678822ca154e75e7b55e422e588f29c8 /lib/Analysis/LoopDependenceAnalysis.cpp | |
parent | 40e61384f0619c924b6e8a4bfbe26e6bc6805bc6 (diff) | |
download | external_llvm-7616a1ef5c411f4503cc99bf0a12a863551edf95.tar.gz external_llvm-7616a1ef5c411f4503cc99bf0a12a863551edf95.tar.bz2 external_llvm-7616a1ef5c411f4503cc99bf0a12a863551edf95.zip |
Define placement new wrappers for BumpPtrAllocator and
RecyclingAllocator to allow client code to be simpler, and
simplify several clients.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98847 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopDependenceAnalysis.cpp')
-rw-r--r-- | lib/Analysis/LoopDependenceAnalysis.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/LoopDependenceAnalysis.cpp b/lib/Analysis/LoopDependenceAnalysis.cpp index bb4f46dff9..e1019474cf 100644 --- a/lib/Analysis/LoopDependenceAnalysis.cpp +++ b/lib/Analysis/LoopDependenceAnalysis.cpp @@ -119,8 +119,7 @@ bool LoopDependenceAnalysis::findOrInsertDependencePair(Value *A, P = Pairs.FindNodeOrInsertPos(id, insertPos); if (P) return true; - P = PairAllocator.Allocate<DependencePair>(); - new (P) DependencePair(id, A, B); + P = new (PairAllocator) DependencePair(id, A, B); Pairs.InsertNode(P, insertPos); return false; } |