aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/LoopDependenceAnalysis.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-03-18 18:49:47 +0000
committerDan Gohman <gohman@apple.com>2010-03-18 18:49:47 +0000
commit01c65a2622cac0bd4ce04b3f3166260b0878b7a7 (patch)
treeaf2a497d6af2a66ce26f0dde57a205705b4a8c4d /llvm/lib/Analysis/LoopDependenceAnalysis.cpp
parented4c2eb7bf0fefa626c0ca0a3d6395438a1c9511 (diff)
downloadllvm-01c65a2622cac0bd4ce04b3f3166260b0878b7a7.zip
llvm-01c65a2622cac0bd4ce04b3f3166260b0878b7a7.tar.gz
llvm-01c65a2622cac0bd4ce04b3f3166260b0878b7a7.tar.bz2
Define placement new wrappers for BumpPtrAllocator and
RecyclingAllocator to allow client code to be simpler, and simplify several clients. llvm-svn: 98847
Diffstat (limited to 'llvm/lib/Analysis/LoopDependenceAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/LoopDependenceAnalysis.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp
index bb4f46d..e101947 100644
--- a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp
+++ b/llvm/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;
}