X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FIR%2FLegacyPassManager.cpp;fp=lib%2FIR%2FLegacyPassManager.cpp;h=f2e0c7d32c0209ea8ca666b15a120adb12291344;hp=08e8906e88db08afbeb73aa42bb0e2c36dddcf27;hb=f79b7835d821236a302090fa9eb05a3a1cc47c31;hpb=5143703795b66599df93a9f35462e522f925c0f8 diff --git a/lib/IR/LegacyPassManager.cpp b/lib/IR/LegacyPassManager.cpp index 08e8906e88d..f2e0c7d32c0 100644 --- a/lib/IR/LegacyPassManager.cpp +++ b/lib/IR/LegacyPassManager.cpp @@ -589,7 +589,7 @@ AnalysisUsage *PMTopLevelManager::findAnalysisUsage(Pass *P) { if (auto *N = UniqueAnalysisUsages.FindNodeOrInsertPos(ID, IP)) Node = N; else { - Node = new (AUFoldingSetNodeAllocator) AUFoldingSetNode(AU); + Node = new (AUFoldingSetNodeAllocator.Allocate()) AUFoldingSetNode(AU); UniqueAnalysisUsages.InsertNode(Node, IP); } assert(Node && "cached analysis usage must be non null");