When checking whether the special handling for an addrec increment which
[oota-llvm.git] / lib / Analysis / LoopDependenceAnalysis.cpp
index bb4f46dff9af0e50d07315ef81e3aba0ec0a9073..e1019474cf4313f97997e0cb1530781970b4f03c 100644 (file)
@@ -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;
 }