summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2012-03-11 06:09:37 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2012-03-11 06:09:37 +0000
commitfe3b069a6a8071fa57190851df8adc49f6c4731d (patch)
treebc8ea861d4421b0d7055e494026f6ff488bb04a3
parent97b02fc1b3d27e0d86cb1203aff77a3104f1a793 (diff)
downloadbcm5719-llvm-fe3b069a6a8071fa57190851df8adc49f6c4731d.tar.gz
bcm5719-llvm-fe3b069a6a8071fa57190851df8adc49f6c4731d.zip
llvm::SwitchInst
Renamed methods caseBegin, caseEnd and caseDefault with case_begin, case_end, and case_default. Added some notes relative to case iterators. llvm-svn: 152533
-rw-r--r--clang/lib/CodeGen/CGCleanup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp
index 15a4f0564bd..b00e2a21bf7 100644
--- a/clang/lib/CodeGen/CGCleanup.cpp
+++ b/clang/lib/CodeGen/CGCleanup.cpp
@@ -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());
OpenPOWER on IntegriCloud