Eli pointed out that va_arg instruction result values don't
[oota-llvm.git] / lib / Analysis / ProfileEstimatorPass.cpp
index bce6b310ce0672ba36155d101ef7ddd88f7773b2..da4ce47692624b0eea0d36e8514e6982407e2ca4 100644 (file)
@@ -398,7 +398,7 @@ bool ProfileEstimatorPass::runOnFunction(Function &F) {
     for (Function::const_iterator FI = F.begin(), FE = F.end(); FI != FE; ++FI) {
       const BasicBlock *BB = &(*FI);
       BlockInformation[&F][BB] = 0;
-      pred_const_iterator predi = pred_begin(BB), prede = pred_end(BB);
+      const_pred_iterator predi = pred_begin(BB), prede = pred_end(BB);
       if (predi == prede) {
         Edge e = getEdge(0,BB);
         setEdgeWeight(e,0);