Fix warning when assertions disabled.
[oota-llvm.git] / lib / Analysis / SparsePropagation.cpp
index 59a63d40854696da01ecf50e83468ef054f697b8..2fda64c733502ff7605f6cf83a1045d40b790e74 100644 (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()) {