|
@@ -504,7 +504,7 @@ static void destroyOptimisticNormalEntry(CodeGenFunction &CGF,
|
|
llvm::SwitchInst *si = cast<llvm::SwitchInst>(use.getUser());
|
|
llvm::SwitchInst *si = cast<llvm::SwitchInst>(use.getUser());
|
|
if (si->getNumCases() == 1 && si->getDefaultDest() == unreachableBB) {
|
|
if (si->getNumCases() == 1 && si->getDefaultDest() == unreachableBB) {
|
|
// Replace the switch with a branch.
|
|
// 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.
|
|
// The switch operand is a load from the cleanup-dest alloca.
|
|
llvm::LoadInst *condition = cast<llvm::LoadInst>(si->getCondition());
|
|
llvm::LoadInst *condition = cast<llvm::LoadInst>(si->getCondition());
|