From dcb291faa4e15d0e0873e76d844d0535ac348afe Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 22 Mar 2007 16:38:57 +0000 Subject: Change uses of Function::front to Function::getEntryBlock for readability. llvm-svn: 35265 --- llvm/lib/Analysis/ProfileInfoLoader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/ProfileInfoLoader.cpp') diff --git a/llvm/lib/Analysis/ProfileInfoLoader.cpp b/llvm/lib/Analysis/ProfileInfoLoader.cpp index 23ceb52d8e2..dec29a40b17 100644 --- a/llvm/lib/Analysis/ProfileInfoLoader.cpp +++ b/llvm/lib/Analysis/ProfileInfoLoader.cpp @@ -152,7 +152,8 @@ void ProfileInfoLoader::getFunctionCounts(std::vectorgetParent()->front() == BlockCounts[i].first) + if (&BlockCounts[i].first->getParent()->getEntryBlock() == + BlockCounts[i].first) Counts.push_back(std::make_pair(BlockCounts[i].first->getParent(), BlockCounts[i].second)); } else { -- cgit v1.2.3