From 3c5bf713535ee1fdfb75b5a1067d8d9cfa344556 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 20 Jan 2010 23:30:28 +0000 Subject: simplify this code. llvm-svn: 94048 --- llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp') diff --git a/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp b/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp index 94b0671c5b0..5650150218c 100644 --- a/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp @@ -130,7 +130,7 @@ bool OptimalEdgeProfiler::runOnModule(Module &M) { // actual MST is returned but the edges _not_ in the MST. ProfileInfo::EdgeWeights ECs = - getAnalysisID(ProfileEstimatorPassID, *F).getEdgeWeights(F); + getAnalysis(*F).getEdgeWeights(F); std::vector EdgeVector(ECs.begin(), ECs.end()); MaximumSpanningTree MST (EdgeVector); std::stable_sort(MST.begin(),MST.end()); -- cgit v1.2.3