Use Function::getEntryBlock instead of Function::begin, for clarity.

llvm-svn: 51613
This commit is contained in:
Dan Gohman 2008-05-27 20:55:29 +00:00
parent 3ec5520286
commit a61379eeea
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ void SparseSolver::visitInst(Instruction &I) {
}
void SparseSolver::Solve(Function &F) {
MarkBlockExecutable(F.begin());
MarkBlockExecutable(&F.getEntryBlock());
// Process the work lists until they are empty!
while (!BBWorkList.empty() || !InstWorkList.empty()) {