diff options
author | Anna Zaks <ganna@apple.com> | 2011-10-25 19:57:06 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-10-25 19:57:06 +0000 |
commit | 063e0887ad65d666d23ee3178436ad6507abbd1b (patch) | |
tree | d6b5c6724f8607e0a4bf2f9a744856e61c6930db /lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp | |
parent | 2e9264a17bacc7dc228d5f93caaeb98dfb23d508 (diff) |
[analyzer] Simplify CheckerContext
Remove dead members/parameters: ProgramState, respondsToCallback, autoTransition.
Remove addTransition method since it's the same as generateNode. Maybe we should
rename generateNode to genTransition (since a transition is always automatically
generated)?
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp b/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp index 6935c5f1c1..f8cd335258 100644 --- a/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp @@ -84,8 +84,7 @@ void ArrayBoundChecker::checkLocation(SVal l, bool isLoad, const Stmt* LoadS, // Array bound check succeeded. From this point forward the array bound // should always succeed. - assert(StInBound); - C.addTransition(StInBound); + C.generateNode(StInBound); } void ento::registerArrayBoundChecker(CheckerManager &mgr) { |