Skip to content

Commit 65c5834

Browse files
committed
fix build for LLVM 8
There is not TerminatorInst now.
1 parent 7d61376 commit 65c5834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RangeAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2326,7 +2326,7 @@ void ConstraintGraph::buildValueBranchMap(const BranchInst *br) {
23262326
void ConstraintGraph::buildValueMaps(const Function& F) {
23272327
for (Function::const_iterator iBB = F.begin(), eBB = F.end(); iBB != eBB;
23282328
++iBB) {
2329-
const TerminatorInst* ti = iBB->getTerminator();
2329+
const auto ti = iBB->getTerminator();
23302330
const BranchInst* br = dyn_cast<BranchInst>(ti);
23312331
const SwitchInst* sw = dyn_cast<SwitchInst>(ti);
23322332

0 commit comments

Comments
 (0)