summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/Analysis/SparsePropagation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/lib/Analysis/SparsePropagation.cpp')
-rw-r--r--gnu/llvm/lib/Analysis/SparsePropagation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/llvm/lib/Analysis/SparsePropagation.cpp b/gnu/llvm/lib/Analysis/SparsePropagation.cpp
index 79dc84e2553..470f4bee1e0 100644
--- a/gnu/llvm/lib/Analysis/SparsePropagation.cpp
+++ b/gnu/llvm/lib/Analysis/SparsePropagation.cpp
@@ -195,7 +195,7 @@ void SparseSolver::getFeasibleSuccessors(TerminatorInst &TI,
Succs.assign(TI.getNumSuccessors(), true);
return;
}
- SwitchInst::CaseIt Case = SI.findCaseValue(cast<ConstantInt>(C));
+ SwitchInst::CaseHandle Case = *SI.findCaseValue(cast<ConstantInt>(C));
Succs[Case.getSuccessorIndex()] = true;
}