summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-04-12 08:12:30 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-04-12 08:12:30 +0000
commit260161b8c50a617b3be12531610d8d4064423948 (patch)
treed3ff54e99ec72aba5a0adbfa1a494bc15017e6b7
parent4af0593eccb036b9272552335495ecb626299522 (diff)
downloadbcm5719-llvm-260161b8c50a617b3be12531610d8d4064423948.tar.gz
bcm5719-llvm-260161b8c50a617b3be12531610d8d4064423948.zip
Update Clang for an API change to LLVM's switch case iterator (it is now
an actual iterator and so we need to look through it to the case handle). llvm-svn: 300035
-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 df6741da4a3..437ab7dd464 100644
--- a/clang/lib/CodeGen/CGCleanup.cpp
+++ b/clang/lib/CodeGen/CGCleanup.cpp
@@ -609,7 +609,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->case_begin().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