llvm::SwitchInst
[oota-llvm.git] / lib / Analysis / LazyValueInfo.cpp
index 6f1137eab74dd94bde4a6c1c5dae818e38b01e56..5ca2746c9f6a6c76e86fa9fb9091d12e5dedaf1e 100644 (file)
@@ -866,7 +866,7 @@ bool LazyValueInfoCache::getEdgeValue(Value *Val, BasicBlock *BBFrom,
       // BBFrom to BBTo.
       unsigned NumEdges = 0;
       ConstantInt *EdgeVal = 0;
-      for (SwitchInst::CaseIt i = SI->caseBegin(), e = SI->caseEnd();
+      for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end();
            i != e; ++i) {
         if (i.getCaseSuccessor() != BBTo) continue;
         if (NumEdges++) break;