llvm::SwitchInst
[oota-llvm.git] / lib / ExecutionEngine / Interpreter / Execution.cpp
index b021e104373134d9a59da018bafaad4d02f7b06a..af47be9c5b56f45e10cd18fd770dbca148bf9391 100644 (file)
@@ -650,7 +650,7 @@ void Interpreter::visitSwitchInst(SwitchInst &I) {
 
   // Check to see if any of the cases match...
   BasicBlock *Dest = 0;
-  for (SwitchInst::CaseIt i = I.caseBegin(), e = I.caseEnd(); i != e; ++i) {
+  for (SwitchInst::CaseIt i = I.case_begin(), e = I.case_end(); i != e; ++i) {
     GenericValue CaseVal = getOperandValue(i.getCaseValue(), SF);
     if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) {
       Dest = cast<BasicBlock>(i.getCaseSuccessor());