diff options
| author | Dan Gohman <gohman@apple.com> | 2007-03-22 16:38:57 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2007-03-22 16:38:57 +0000 |
| commit | dcb291faa4e15d0e0873e76d844d0535ac348afe (patch) | |
| tree | bc1ad467f377cbb8d0f9ccae56b27586d660c920 /llvm/lib/Analysis/ProfileInfo.cpp | |
| parent | 085b8d7ae2f8a3ce28f2da0b33a6b9e734c70823 (diff) | |
| download | bcm5719-llvm-dcb291faa4e15d0e0873e76d844d0535ac348afe.tar.gz bcm5719-llvm-dcb291faa4e15d0e0873e76d844d0535ac348afe.zip | |
Change uses of Function::front to Function::getEntryBlock for readability.
llvm-svn: 35265
Diffstat (limited to 'llvm/lib/Analysis/ProfileInfo.cpp')
| -rw-r--r-- | llvm/lib/Analysis/ProfileInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ProfileInfo.cpp b/llvm/lib/Analysis/ProfileInfo.cpp index 719eeada15a..6eead0fd6ec 100644 --- a/llvm/lib/Analysis/ProfileInfo.cpp +++ b/llvm/lib/Analysis/ProfileInfo.cpp @@ -33,7 +33,7 @@ unsigned ProfileInfo::getExecutionCount(BasicBlock *BB) const { // Are there zero predecessors of this block? if (PI == PE) { // If this is the entry block, look for the Null -> Entry edge. - if (BB == &BB->getParent()->front()) + if (BB == &BB->getParent()->getEntryBlock()) return getEdgeWeight(0, BB); else return 0; // Otherwise, this is a dead block. |

