Skip to content

Commit

Permalink
[analyzer] Add missing state transition in IteratorChecker.
Browse files Browse the repository at this point in the history
After cleaning up program state maps in `checkDeadSymbols()`,
a transition should be added to generate the new state.

Differential Revision: https://reviews.llvm.org/D47417

llvm-svn: 338263
  • Loading branch information
rnkovacs committed Jul 30, 2018
1 parent 22ff9f9 commit e48ea89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,8 @@ void IteratorChecker::checkDeadSymbols(SymbolReaper &SR,
State = State->remove<IteratorComparisonMap>(Comp.first);
}
}

C.addTransition(State);
}

ProgramStateRef IteratorChecker::evalAssume(ProgramStateRef State, SVal Cond,
Expand Down

0 comments on commit e48ea89

Please sign in to comment.