about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rw-r--r--lib/Module/LowerSwitch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Module/LowerSwitch.cpp b/lib/Module/LowerSwitch.cpp
index 9ccf4804..e5382c1a 100644
--- a/lib/Module/LowerSwitch.cpp
+++ b/lib/Module/LowerSwitch.cpp
@@ -117,7 +117,7 @@ void LowerSwitchPass::processSwitchInst(SwitchInst *SI) {
   CaseVector cases;
   
 #if LLVM_VERSION_CODE >= LLVM_VERSION(3, 1)
-  for (SwitchInst::CaseIt i = SI->caseBegin(), e = SI->caseEnd(); i != e; ++i)
+  for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end(); i != e; ++i)
     cases.push_back(SwitchCase(i.getCaseValue(),
                                i.getCaseSuccessor()));
 #else