Regenerate.
[oota-llvm.git] / lib / Analysis / ProfileInfoLoader.cpp
index 23ceb52d8e2ef7d748fcd692ad5f77189188da2a..dec29a40b178b24167a1d83dc4c9fad7255e0b3d 100644 (file)
@@ -152,7 +152,8 @@ void ProfileInfoLoader::getFunctionCounts(std::vector<std::pair<Function*,
       getBlockCounts(BlockCounts);
 
       for (unsigned i = 0, e = BlockCounts.size(); i != e; ++i)
-        if (&BlockCounts[i].first->getParent()->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 {