]> granicus.if.org Git - clang/commitdiff
llvm::SwitchInst
authorStepan Dyatkovskiy <stpworld@narod.ru>
Sun, 11 Mar 2012 06:09:37 +0000 (06:09 +0000)
committerStepan Dyatkovskiy <stpworld@narod.ru>
Sun, 11 Mar 2012 06:09:37 +0000 (06:09 +0000)
Renamed methods caseBegin, caseEnd and caseDefault with case_begin, case_end, and case_default.
Added some notes relative to case iterators.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152533 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCleanup.cpp

index 15a4f0564bd7a503a982229dfd9b2caa9c3100ca..b00e2a21bf77731074fac585ece254f58cb910a5 100644 (file)
@@ -504,7 +504,7 @@ static void destroyOptimisticNormalEntry(CodeGenFunction &CGF,
     llvm::SwitchInst *si = cast<llvm::SwitchInst>(use.getUser());
     if (si->getNumCases() == 1 && si->getDefaultDest() == unreachableBB) {
       // Replace the switch with a branch.
-      llvm::BranchInst::Create(si->caseBegin().getCaseSuccessor(), si);
+      llvm::BranchInst::Create(si->case_begin().getCaseSuccessor(), si);
 
       // The switch operand is a load from the cleanup-dest alloca.
       llvm::LoadInst *condition = cast<llvm::LoadInst>(si->getCondition());